![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
algorithm
soyiyi
这个作者很懒,什么都没留下…
展开
-
Container With Most Water
From LeetCode No.11;Tier:MediumContent: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 l...原创 2019-06-13 22:15:37 · 69 阅读 · 0 评论 -
Longest Substring Without Repeating Characters
From LeetCode No.3;Tier:MediumContent:Given a string, find the length of the longest substring without repeating characters.Example 1:Input: “abcabcbb” Output: 3 Explanation: The answer is “abc...原创 2019-06-10 17:25:19 · 88 阅读 · 0 评论 -
Median of Two Sorted Arrays
From LeetCode No.4;Tier:HardContent:here are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(lo...原创 2019-06-10 17:35:03 · 68 阅读 · 0 评论 -
String to Integer (atoi)
From LeetCode No.8;Tier:MediumContent:Implement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace cha...原创 2019-06-10 17:50:49 · 83 阅读 · 0 评论 -
First Unique Character in a String
From LeetCode No.387;Tier:EasyContent:Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1.Examples:s = “leetcode”return 0.s = “...原创 2019-06-10 17:57:22 · 88 阅读 · 0 评论 -
Generate Parentheses
From LeetCode No.22;Tier:MediumContent:Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.Example:input:n=3[ “((()))”, “(()())”, “(())(...原创 2019-06-21 21:36:24 · 119 阅读 · 0 评论 -
Reverse Nodes in k-Group
From LeetCode No.25;Tier:HardContent:Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.k is a positive integer and is less than or equal to the lengt...原创 2019-06-22 20:29:38 · 107 阅读 · 0 评论