LeetCode
no_name_1119
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
用折半查找写过超过100%的一个题
题目: class Solution { public: int searchInsert(vector<int>& nums, int target) { int position = 0; int low = 0; int up = nums.size()-1; int mid; ...原创 2019-01-17 14:53:15 · 381 阅读 · 0 评论 -
一个速度100%的easy题目
Count and Say class Solution { public: string countAndSay(int n) { string ret = "1"; string Tempret; int count1,i; char read; while(--n) { ...原创 2019-01-17 16:47:28 · 322 阅读 · 0 评论 -
833:Find And Replace in String
问题描述: To some string S, we will perform some replacement operations that replace groups of letters with new ones (not necessarily the same size). Each replacement operation has 3 parameters: a start...原创 2019-01-19 15:11:39 · 349 阅读 · 0 评论 -
最大子串问题
3. Longest Substring Without Repeating Characters Medium 4549225FavoriteShare Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" ...原创 2019-01-14 17:30:42 · 458 阅读 · 0 评论 -
841. Keys and Rooms (auto加快时间)
问题描述: There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room. Formally, each room i has a list of...原创 2019-01-20 14:49:47 · 291 阅读 · 0 评论 -
669. Trim a Binary Search Tree
问题描述: Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tree, so...原创 2019-01-21 20:37:49 · 269 阅读 · 0 评论
分享