![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
PiscesDAI
这个作者很懒,什么都没留下…
展开
-
908. Smallest Range I
Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i].After this process, we have some array B.Return the smallest possible difference ...原创 2018-11-09 09:48:50 · 120 阅读 · 0 评论 -
11. Container With Most Water
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two...原创 2018-11-09 10:39:46 · 123 阅读 · 0 评论 -
3. Longest Substring Without Repeating Characters(map用法)
Given a string, find the length of the longest substring without repeating characters.class Solution {public: int lengthOfLongestSubstring(string s) { map<char,int> record; ...原创 2018-11-27 17:56:05 · 152 阅读 · 0 评论