摘要:
Problem Description:Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) ... 阅读全文
摘要:
Problem Description:Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceb... 阅读全文
摘要:
After reading the quote below the problem, you will be motivated to solve it immediately :-) Well, indeed it is also relative easy. The process of inv... 阅读全文
摘要:
This problem is not very intuitive at first glance. However, the final idea should be very self-explanatory. You visit each element in nums, and then ... 阅读全文