摘要:
206. Reverse Linked List Given the head of a singly linked list, reverse the list, and return the reversed list. Constraints: The number of nodes in t 阅读全文
摘要:
33. Search in Rotated Sorted Array There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your func 阅读全文
摘要:
153. Find Minimum in Rotated Sorted Array Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the ar 阅读全文
摘要:
20. Valid Parentheses Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An inpu 阅读全文
摘要:
76. Minimum Window Substring Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every chara 阅读全文
摘要:
424. Longest Repeating Character Replacement You are given a string s and an integer k. You can choose any character of the string and change it to an 阅读全文
摘要:
3. Longest Substring Without Repeating Characters Given a string s, find the length of the longest substring without repeating characters. Constraints 阅读全文
摘要:
121. Best Time to Buy and Sell Stock You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize 阅读全文
摘要:
11. Container With Most Water You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the i 阅读全文
摘要:
3Sum Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nu 阅读全文