2017年5月13日
摘要:
1 102 Binary Tree Level Order Traverse public class Solution { public List<List<Integer>> levelOrder(TreeNode root) { Queue<TreeNode> queue = new Link
阅读全文
posted @ 2017-05-13 20:00
wheleetcode
阅读(88)
推荐(0)
2017年5月12日
摘要:
5月12日 1 94 Binary Tree Inorder Traverse 栈 public List<Integer> inorderTraversal(TreeNode root) { List<Integer> list = new ArrayList<>(); Stack<TreeNod
阅读全文
posted @ 2017-05-12 14:50
wheleetcode
阅读(143)
推荐(0)
2017年5月10日
摘要:
5月10日 1 37 Sudoku Slover public void solveSudoku(char[][] board) { if(board == null || board.length == 0) return; slove(board); } public boolean slove
阅读全文
posted @ 2017-05-10 13:11
wheleetcode
阅读(136)
推荐(0)
2017年5月7日
摘要:
1 44 Wildcard Match 双指针 public boolean isMatch(String s, String p) { int idxs = 0, idxp = 0, idxstart = -1, idxmatch = 0; while (idxs < s.length()) {
阅读全文
posted @ 2017-05-07 19:49
wheleetcode
阅读(115)
推荐(0)
2017年5月6日
摘要:
1 2 218 The Skyline Problem 最大堆 遍历节点 public List<int[]> getSkyline(int[][] buildings) { List<int[]> res = new ArrayList<>(); List<int[]> point = new A
阅读全文
posted @ 2017-05-06 15:46
wheleetcode
阅读(95)
推荐(0)
2017年5月5日
摘要:
5月5号 1 174 Dungeon Game 动态规划 ,从后向前 public int calculateMinimumHP(int[][] dungeon) { if (dungeon == null || dungeon.length == 0 || dungeon[0].length ==
阅读全文
posted @ 2017-05-05 14:38
wheleetcode
阅读(106)
推荐(0)
2017年5月1日
摘要:
1 string 58 2 string 68 3 string 72 4 string 87 5 string 126 6 string 214 7 215 8
阅读全文
posted @ 2017-05-01 13:04
wheleetcode
阅读(98)
推荐(0)
2017年4月28日
摘要:
4月28号 1 5 Longest Palindromic Substring 分奇偶,找最大 public String longestPalindrome(String s) { int n = s.length(); if (n < 2) return s; String res = "";
阅读全文
posted @ 2017-04-28 14:30
wheleetcode
阅读(143)
推荐(0)
2017年4月27日
摘要:
1 3 Longest Substring Without Repeating Character map维护最长里的值 ,两个指针向前移动 public int lengthOfLongestSubstring(String s) { if (s.length() == 0) return 0;
阅读全文
posted @ 2017-04-27 10:55
wheleetcode
阅读(135)
推荐(0)
2017年4月23日
摘要:
1 DB database 数据库 DBMS database Management System 数据库管理系统 数据库:存储,维护,管理数据的集合 打开服务窗口 services.msc 停止和启动服务 net stop/start mysql 打开mysql mysql -u root -p
阅读全文
posted @ 2017-04-23 22:13
wheleetcode
阅读(92)
推荐(0)