Description
https://leetcode.com/problems/implement-magic-dictionary/description/
Solution
1 | class TrieNode { |
Why don't you come to your senses?
https://leetcode.com/problems/implement-magic-dictionary/description/
1 | class TrieNode { |
https://leetcode.com/problems/two-sum-iv-input-is-a-bst/
1 | /** |
https://leetcode.com/problems/two-sum/description/
1 | class Solution { |
https://leetcode.com/problems/count-univalue-subtrees/
1 | /** |
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window.
Example:
1 | MovingAverage m = new MovingAverage(3); |
1 | class MovingAverage { |
Design a max stack that supports push, pop, top, peekMax and popMax.
1 | class MaxStack { |
https://leetcode.com/problems/paint-house-ii/
1 | class Solution { |
https://leetcode.com/problems/paint-house/
1 | class Solution { |
https://leetcode.com/problems/longest-substring-with-at-most-two-distinct-characters/
1 | class Solution { |
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).
Find all strobogrammatic numbers that are of length = n.
Example:
1 | Input: n = 2 |
1 | class Solution { |