017. Letter Combinations of a Phone Number
题目大意:对于一个给出的数字串,输出其可能的在手机键盘上代表的字符串,如对于数字串“23”。
其可能代表的字符串便有”ad”, “ae”, “af”, “bd”, “be”, “bf”, “cd”, “ce”, “cf”
题目大意:对于一个给出的数字串,输出其可能的在手机键盘上代表的字符串,如对于数字串“23”。
其可能代表的字符串便有”ad”, “ae”, “af”, “bd”, “be”, “bf”, “cd”, “ce”, “cf”
给于一个整型数字范围在1-3999,将它转化为罗马数字
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.
Given "bbbbb"
, the answer is "b"
, with the length of 1.
Given "pwwkew"
, the answer is "wke"
, with the length of 3. Note that the answer must be a substring, "pwke"
is a subsequence and not a substring.
i - left + 1
。其中i是最长无重复子串最右边的位置,left是最左边的位置。i + 1
,用于表示当前字符在第几个位置。1 |
|
雷军说:站在风口上,猪都会飞。
最近老板让我们画图,然后网上的教程实在是有点简单。很多高标准的操作都没有方法,于是自己写一篇教程。
https://leetcode.com/problems/unique-binary-search-trees-ii/description/