1、题目名称 Rotate Array(平移数组) 2、题目地址 https://leetcode.com/problems/rotate-array/ 3、题目内容 英文:Rotate an array of n elements to the right by k steps. 中文:将一个长度为n的数组,向右...
分类:
其他好文 时间:
2015-08-09 12:45:19
阅读次数:
130
1、题目名称 Isomorphic Strings(同构的字符串) 2、题目地址 https://leetcode.com/problems/isomorphic-strings/ 3、题目内容 英文: Given two strings s and t, determine if they are isomorphic. Two str...
分类:
其他好文 时间:
2015-08-08 23:06:41
阅读次数:
440
1、题目名称 Pow(x, n)(求指定数字x的整数次幂) 2、题目地址 https://leetcode.com/problems/powx-n/ 3、题目内容 英文:Implement pow(x, n) 中文:给定底数x和指数n,求x的n次幂 4、解题方法1 在Java中,有一...
分类:
其他好文 时间:
2015-08-08 21:31:57
阅读次数:
140
1、题目名称 Largest Number(求整型数组中各元素可拼合成的最大数字) 2、题目地址 https://leetcode.com/problems/largest-number/ 3、题目内容 英文:Given a list of non negative integers, arrange them s...
分类:
其他好文 时间:
2015-08-08 18:32:33
阅读次数:
174
https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leavi...
分类:
其他好文 时间:
2015-08-08 17:52:17
阅读次数:
115
https://leetcode.com/problems/remove-duplicates-from-sorted-list/题目:Given a sorted linked list, delete all duplicates such that each element appear on...
分类:
其他好文 时间:
2015-08-08 16:17:27
阅读次数:
93
https://leetcode.com/problems/climbing-stairs/题目:You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or...
分类:
其他好文 时间:
2015-08-08 16:13:47
阅读次数:
62
https://leetcode.com/problems/add-binary/题目:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".思路:...
分类:
其他好文 时间:
2015-08-08 13:33:55
阅读次数:
83
有 T(1 2 #include 3 #include 4 int M,T,N; 5 double p[1002][32]; 6 double dp[1002][32][32]; 7 double sum[1002][32]; 8 int main() { 9 scanf("%d %d %d...
分类:
其他好文 时间:
2015-08-08 11:48:34
阅读次数:
130
1、题目名称 Count and Say(按照数字重复出现计数并生成字符串) 2、题目地址 https://leetcode.com/problems/count-and-say/ 3、题目内容 英文:The count-and-say sequence is the sequence of integers begi...
分类:
其他好文 时间:
2015-08-08 00:08:05
阅读次数:
145