上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 114 下一页
摘要: /** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNod 阅读全文
posted @ 2017-04-24 21:34 Sempron2800+ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/perfect-number/#/description 阅读全文
posted @ 2017-04-24 20:57 Sempron2800+ 阅读(114) 评论(0) 推荐(0) 编辑
摘要: public class Solution { Stack<char> S = new Stack<char>(); public bool IsValid(string s) { foreach (var c in s) { if (c == '(' || c == '[' || c == '{' 阅读全文
posted @ 2017-04-24 20:42 Sempron2800+ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/isomorphic-strings/#/description 阅读全文
posted @ 2017-04-24 19:31 Sempron2800+ 阅读(99) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/find-all-anagrams-in-a-string/#/description 上面的是别人在讨论区的实现。 下面是我自己的实现,使用非递归方法,性能更好: 阅读全文
posted @ 2017-04-24 17:54 Sempron2800+ 阅读(177) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/binary-tree-tilt/#/description 阅读全文
posted @ 2017-04-24 15:00 Sempron2800+ 阅读(104) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/array-partition-i/#/description 阅读全文
posted @ 2017-04-24 11:47 Sempron2800+ 阅读(92) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode right; * public TreeNod 阅读全文
posted @ 2017-04-22 17:56 Sempron2800+ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public string CountAndSay(int n) { //1 //11 //21 //1211 //111221 //312211 //13112221 //1113213211 if (n == 1) { return "1"; } 阅读全文
posted @ 2017-04-22 17:49 Sempron2800+ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/guess-number-higher-or-lower/#/description 阅读全文
posted @ 2017-04-22 16:35 Sempron2800+ 阅读(81) 评论(0) 推荐(0) 编辑
上一页 1 ··· 100 101 102 103 104 105 106 107 108 ··· 114 下一页