C#
jwhjwh1111
只是初学编程,还菜的很呢
展开
-
53. Maximum Subarray
Solution 1: http://blog.csdn.net/qq_39643935/article/details/78225843 Solution 2: https://segmentfault.com/a/1190000003481202转载 2017-11-17 10:21:33 · 96 阅读 · 0 评论 -
58. Length of Last Word
Solution 1: http://blog.csdn.net/a15994269853/article/details/20624769 根据java改写。 public class Solution { public int LengthOfLastWord(string s) { if (s.Trim().Equals("") || s.Length ==转载 2017-11-17 10:46:55 · 120 阅读 · 0 评论 -
67. Add Binary
https://segmentfault.com/a/1190000003707317转载 2017-11-17 11:18:40 · 132 阅读 · 0 评论 -
14. Longest Common Prefix
public class Solution { public string LongestCommonPrefix(string[] strs) { if(strs.Length==0) return ""; string prefix=strs[0]; for(int i=1;i<strs.Length;i++) {转载 2017-11-03 16:37:49 · 189 阅读 · 0 评论 -
69. Sqrt(x)
http://blog.csdn.net/dl0914791011/article/details/41241637(C/C++) http://blog.csdn.net/zyf19930610/article/details/52599510(C++) http://blog.csdn.net/doc_sgl/article/details/12404971(C++) http:转载 2017-11-17 17:08:21 · 151 阅读 · 0 评论 -
20. Valid Parentheses
C# solution 1 http://blog.csdn.net/qq_39643935/article/details/78187058 http://blog.csdn.net/daypig/article/details/51707348 (似乎也挺好) http://blog.csdn.net/u014056175/article/details/48291转载 2017-11-04 10:23:03 · 173 阅读 · 0 评论 -
21. Merge Two Sorted Lists
21. Merge Two Sorted Lists C# solution 1 http://www.cnblogs.com/etcow/archive/2012/09/29/2707908.html (链表完全不会,放弃) http://blog.csdn.net/daypig/article/details/51768201转载 2017-11-04 16:53:28 · 182 阅读 · 0 评论 -
38. Count and Say
转载出处不记得了,因为是前几天网上找到的代码,在VS里面运行过,今天重新翻出来学习。刚才试着搜索了一下,没找到原始链接。感谢原创者。 public string CountAndSay(int n) { if (n <= 0) { return string.Empty;转载 2017-11-14 21:04:13 · 169 阅读 · 0 评论