Blue Ocean
Monday, September 23, 2019
Find Duplicate Numbers in An Integer Array
›
Give an array contains n+1 number which range from 1 to n. Find the duplicates. e.g. 1, 2, 3, 3 -> 3 1, 3, 2, 4, 3 -> 3 Requireme...
Thursday, August 24, 2017
regular expression match
›
Recently I coded in JS a lot. Its simplicity to make writing code extremely concise.
Monday, June 27, 2016
[LeetCode] Flatten Nested List Iterator
›
Many questions looks pretty hard, and we came up lots of lines of code and tried to cover every corner cases. But in the end the perfect sol...
Sunday, May 29, 2016
[LeetCode] Integer to English Words
›
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 2 31 - 1. For example, 123...
Wednesday, April 27, 2016
[LeetCode] Patching Array
›
From leetcode Given a sorted positive integer array nums and an integer n , add/patch elements to the array such that any number in range ...
Sunday, April 24, 2016
[LeetCode] Verify Preorder Serialization of a Binary Tree
›
One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it ...
3 comments:
[LeetCode] LRU Cache
›
One of straightforward implementation of LRUCache is to use JDK's LinkedHashMap. However to implement it correctly, overriding its remov...
›
Home
View web version