你需要找到由两个 n 位数的乘积组成的最大回文数。由于结果会很大,你只需返回最大回文数 mod 1337得到的结果。示例:输入: 2输出: 987解释: 99 x 91 = 9009, 9009 % 1337 = 987说明:n 的取值范围为 [1,8]。详见:https://leetcode.co ...
分类:
其他好文 时间:
2018-04-21 21:19:06
阅读次数:
800
Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 思路: 把链表一分为二。把右边的一半翻转,再逐个比对左右的链表就可 ...
分类:
其他好文 时间:
2018-04-21 17:48:41
阅读次数:
136
现在想要应聘大数据分析或者数据挖掘岗位,很多都需要会使用Hive,Mapreduce,Hadoop等这些大数据分析技术。为了充实自己就先从简单的Hive开始吧。接下来的几篇文章是记录我如何入门学习Hive的。 一、Hive简介 Hive是一个数据仓库基础工具,架构在Hadoop之上,能够处理Hado ...
分类:
其他好文 时间:
2018-04-21 15:20:11
阅读次数:
222
交集合cat=['fish','beef','pig'] dog=['beef','pig'] #列表转变为集合 cat1=set(cat) dog1=set(dog) print(cat1,dog1) 输出{'pig', 'beef', 'fish'} {'pig', 'beef'} print(... ...
分类:
其他好文 时间:
2018-04-20 23:28:38
阅读次数:
233
Azkaban和Oozie的区别: 当前,实际生产中最流行的两种Hadoop工作流引擎是Azkaban与Oozie。但活跃度最高的当是Azkaban了,下面对两者的异同之处作如下对比。 功能对比 Azkaban和Oozie都可以调用像linux、mapreduce、pig、spark、java等脚本 ...
分类:
其他好文 时间:
2018-04-20 14:32:39
阅读次数:
859
A positive integer is called a palindrome if its representation in the decimal system is the same when read from left to right and from right to left. ...
分类:
其他好文 时间:
2018-04-19 19:13:50
阅读次数:
179
Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Can you propose an ...
分类:
其他好文 时间:
2018-04-18 19:03:53
阅读次数:
171
Task: Control Flow Oriented Coverage Test ProceduresIn the so-called branch coverage test, the test case quantity for a Program P be compiled so that ...
分类:
编程语言 时间:
2018-04-18 18:58:06
阅读次数:
188
@requires_authorization @author johnsondu @create_time 2015.7.13 9:48 @url [palindrome-number](https://leetcode.com/problems/palindrome-number/) /**** ...
分类:
其他好文 时间:
2018-04-18 11:46:38
阅读次数:
148
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4632 题目大意:给你若干个字符串,回答每个字符串有多少个回文子序列(可以不连续的子串)。解题思路: 设dp[i][j]为[i,j]的回文子序列数,那么得到状态转移方程: dp[i][j]=(dp[i+1 ...
分类:
其他好文 时间:
2018-04-17 00:49:42
阅读次数:
192