摘要: 1、翻转字符串 http://www.cnblogs.com/yiwenhao/p/7407501.html 2、爬楼梯 http://www.cnblogs.com/yiwenhao/p/7407505.html 3、翻转链表 http://www.cnblogs.com/yiwenhao/p/7 阅读全文
posted @ 2017-08-27 20:42 逸文皓 阅读(117) 评论(4) 推荐(0) 编辑
摘要: public class TreeNode { public int val; public TreeNode left, right; public TreeNode(int val) { this.val = val; this.left = this.right = null; } } / p 阅读全文
posted @ 2017-08-22 02:33 逸文皓 阅读(126) 评论(0) 推荐(0) 编辑
摘要: public class Solution { / @param nums: An array of integers @return: An integer / public int maxProduct(int[] nums) { // write your code here int max 阅读全文
posted @ 2017-08-22 02:29 逸文皓 阅读(71) 评论(0) 推荐(0) 编辑
摘要: public class Solution { / @param s: a string, encoded message @return: an integer, the number of ways decoding / public int numDecodings(String s) { / 阅读全文
posted @ 2017-08-22 02:22 逸文皓 阅读(107) 评论(0) 推荐(0) 编辑
摘要: class Solution { / Get all distinct N Queen solutions @param n: The number of queens @return: All distinct solutions For example, A string '...Q' show 阅读全文
posted @ 2017-08-22 02:19 逸文皓 阅读(86) 评论(0) 推荐(0) 编辑
摘要: / Definition for singly linked list. public class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; } } / public class Soluti 阅读全文
posted @ 2017-08-22 02:16 逸文皓 阅读(121) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: / @param A: A string includes Upper Case letters @param B: A string includes Upper Case letter @return: if string A contains 阅读全文
posted @ 2017-08-22 02:11 逸文皓 阅读(98) 评论(0) 推荐(0) 编辑
摘要: class Solution { / @param A and B: sorted integer array A and B. @return: A new sorted integer array / public ArrayList mergeSortedArray(ArrayList A, 阅读全文
posted @ 2017-08-22 02:04 逸文皓 阅读(83) 评论(0) 推荐(0) 编辑
摘要: / Definition for ListNode. public class ListNode { int val; ListNode next; ListNode(int val) { this.val = val; this.next = null; } } / public class So 阅读全文
posted @ 2017-08-22 01:59 逸文皓 阅读(84) 评论(0) 推荐(0) 编辑
摘要: public class Solution { / @param n: An integer @return: An integer / public int climbStairs(int n) { // write your code here if (n 阅读全文
posted @ 2017-08-22 01:51 逸文皓 阅读(89) 评论(0) 推荐(0) 编辑