Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An is...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An is...
Customer ObsessionLeaders start with the customer and work backward. They work vigorous...
We have a list of points on the plane. Find the K closest points to the origin (0, 0)....
Given a string s, find the longest palindromic substring in s. You may assume that the ...
15. 3Sum Given an array nums of n integers, are there elements a, b, c in nums such tha...
今天主要将自己刷的2sum和相关的一些同一类型的题目做个summary。正所谓‘平生不识TwoSum,刷尽LeetCode也枉然’ 1. 2sum 题目描述:Given an...