摘要:
问题描述 给定一个整数数组,返回range sum 落在给定区间[lower, upper] (包含lower和upper)的个数。range sum S(i, j) 表示数组中第i 个元素到j 个元素之和。 Note : A naive algorithm of O(n2) is trivial. 阅读全文
摘要:
Given a string, find the length of the longest substring without repeating characters. Examples ~~~ Given "abcabcbb", the answer is "abc", which the l 阅读全文
摘要:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
摘要:
问题描述 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see b 阅读全文