2017年10月18日

链表

摘要: 1 package struct; 2 3 /** 4 * Created by moi on 2017/10/18. 5 */ 6 public class LinkList { 7 /** 8 * Definition for singly-linked list. 9 */ 10 public class ListNode { 1... 阅读全文

posted @ 2017-10-18 23:09 parkin 阅读(121) 评论(0) 推荐(0) 编辑

排序算法

摘要: 1 package sort; 2 3 /** 4 * @Description 5 * @Author Created by t.wu on 2017/8/21. 6 */ 7 public class QuickSort { 8 9 public void sort(int[] a, int l, int r) { 10 if (l = 0... 阅读全文

posted @ 2017-10-18 23:05 parkin 阅读(134) 评论(0) 推荐(0) 编辑

2的幂次

摘要: 1 package algorithm; 2 3 /** 4 * Created by moi on 2017/10/18. 5 */ 6 public class PowerOf2 { 7 8 public static int powOf2(int n){ 9 if(n==0){ 10 return 1; 11 ... 阅读全文

posted @ 2017-10-18 22:59 parkin 阅读(151) 评论(0) 推荐(0) 编辑

导航