Say you have an array for which the $i^{th}$ element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (i.e., buy one and sell ...
Given a string, find the length of the longest substring without repeating characters.
Examples:
Given "abcabcbb", the answer is "abc", which the length is 3.
G...
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
Example:
12Input: "25525511135"Output: ["255.255.11.135&qu...