- 博客(4)
- 收藏
- 关注
原创 python基础 list常用方法
List 是Python中使用最频繁的数据类型 python 中的 list 更像 Java 中的数组 索引 list 的负索引 可以看成 a [ n - i ] == a [ - i ] 其中 n 为 a 的长度 分片 slice a [ x : y ] 其中 x 表示你第一个想得到元素的索引位置, y 表示你第一个不想得到的元素的索
2017-09-25 23:32:37
183
原创 面试常见的排序
import java.util.Arrays; public class SortTest { public static void main(String[] args) { int[] a = {11,1,3,5,9,7,8,2,4,6,0,10}; // quickSort(a,0,a.length-1); heapSort(a); System.out.println
2017-09-17 23:33:59
172
原创 java leetcode38 递归 4ms
public class Solution { public String countAndSay(int n) { String b; if (n==1) return "1"; else { b = countAndSay(n-1); return count(b); }
2017-04-27 11:37:20
230
原创 python leetcode38 递归
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 21 is read off as “one 2, the
2017-04-27 11:03:55
457
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人