摘要:
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 阅读全文
摘要:
public class TreeNode { public int val; public TreeNode left, right; public TreeNode(int val) { this.val = val; this.left = this.right = null; } } / p 阅读全文
摘要:
public class Solution { / @param nums: An array of integers @return: An integer / public int maxProduct(int[] nums) { // write your code here int max 阅读全文
摘要:
public class Solution { / @param s: a string, encoded message @return: an integer, the number of ways decoding / public int numDecodings(String s) { / 阅读全文
摘要:
class Solution { / Get all distinct N Queen solutions @param n: The number of queens @return: All distinct solutions For example, A string '...Q' show 阅读全文
摘要:
/ Definition for singly linked list. public class ListNode { int val; ListNode next; ListNode(int x) { val = x; next = null; } } / public class Soluti 阅读全文
摘要:
class Solution { public: / @param A: A string includes Upper Case letters @param B: A string includes Upper Case letter @return: if string A contains 阅读全文
摘要:
class Solution { / @param A and B: sorted integer array A and B. @return: A new sorted integer array / public ArrayList mergeSortedArray(ArrayList A, 阅读全文
摘要:
/ Definition for ListNode. public class ListNode { int val; ListNode next; ListNode(int val) { this.val = val; this.next = null; } } / public class So 阅读全文
摘要:
public class Solution { / @param n: An integer @return: An integer / public int climbStairs(int n) { // write your code here if (n 阅读全文