自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除