摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ 阅读全文
posted @ 2019-03-14 11:25 Schwifty 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2019-03-14 09:34 Schwifty 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
posted @ 2019-03-14 04:04 Schwifty 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 位运算: https://www.cnblogs.com/liaopeng/p/8436155.html 0>>1 = 0 (0<<1) + 1 = 1 0<<1 = 0 (0>>1) + 1 = 1 1&1 = 1, 0&1 = 0; Hashmap basic methods: https:// 阅读全文
posted @ 2019-03-14 01:28 Schwifty 阅读(242) 评论(0) 推荐(0) 编辑