上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: /* public class TreeLinkNode { int val; TreeLinkNode left = null; TreeLinkNode right = null; TreeLinkNode next = null; TreeLinkNode(int val) { this.val = val; } } */ ... 阅读全文
posted @ 2019-06-02 21:19 紫色的雪 阅读(284) 评论(0) 推荐(0)
摘要: /* public class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = val; } } */ public class Solution { boole... 阅读全文
posted @ 2019-06-02 21:05 紫色的雪 阅读(370) 评论(0) 推荐(0)
摘要: /* public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } */ public class Solution { public ListNode deleteDuplication(ListNode p... 阅读全文
posted @ 2019-06-01 21:47 紫色的雪 阅读(192) 评论(0) 推荐(0)
摘要: /* public class ListNode { int val; ListNode next = null; ListNode(int val) { this.val = val; } } */ public class Solution { public static ListNode EntryNodeOfLoop(List... 阅读全文
posted @ 2019-05-31 10:07 紫色的雪 阅读(237) 评论(0) 推荐(0)
摘要: public class Solution { //Insert one char from stringstream int[] arr = new int[256]; int temp = 1; public void Insert(char ch) { if(arr[ch] == 0){ arr[ch] = t... 阅读全文
posted @ 2019-05-30 15:52 紫色的雪 阅读(569) 评论(0) 推荐(0)
摘要: public class Solution { public boolean isNumeric(char[] str) { if(str.length == 0){ return false; } String string = String.valueOf(str); return string.... 阅读全文
posted @ 2019-05-30 11:17 紫色的雪 阅读(456) 评论(0) 推荐(0)
摘要: import java.util.ArrayList; public class Solution { public int[] multiply(int[] A) { if(A==null || A.length == 0){ return null; } int[] B = n... 阅读全文
posted @ 2019-05-28 15:46 紫色的雪 阅读(947) 评论(0) 推荐(0)
摘要: import java.util.*; public class Solution { // Parameters: // numbers: an array of integers // length: the length of array numbers // duplication: (Output) the dupli... 阅读全文
posted @ 2019-05-28 14:35 紫色的雪 阅读(367) 评论(0) 推荐(0)
摘要: public class Solution { public int StrToInt(String str) { if(str == null || str.length()==0){ return 0; } int flag = 1; int start = 0;//用于标志符号位 ... 阅读全文
posted @ 2019-05-28 09:49 紫色的雪 阅读(783) 评论(0) 推荐(0)
摘要: public class Solution { public int Add(int num1,int num2) { int sum = 0;//不带进位的结果 int carry = 0;//进位 while(num2 != 0){ sum = num1 ^ num2; carry = (num... 阅读全文
posted @ 2019-05-28 09:13 紫色的雪 阅读(1293) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页