摘要: Leetcode.16 3Sum Closest Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. 阅读全文
posted @ 2020-08-17 16:28 mhp 阅读(98) 评论(0) 推荐(0)
摘要: Leetcode.18 4Sum Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? 阅读全文
posted @ 2020-08-17 16:27 mhp 阅读(78) 评论(0) 推荐(0)
摘要: Leetcode.15 3Sum Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array 阅读全文
posted @ 2020-08-17 16:21 mhp 阅读(109) 评论(0) 推荐(0)
摘要: Leetcode.1 Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each 阅读全文
posted @ 2020-08-17 16:18 mhp 阅读(81) 评论(0) 推荐(0)
摘要: Leetcode.451 Sort Characters By Frequency Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" O 阅读全文
posted @ 2020-08-17 16:16 mhp 阅读(88) 评论(0) 推荐(0)
摘要: Leetcode.205 Isomorphic Strings Given two strings *s* and *t*, determine if they are isomorphic. Two strings are isomorphic if the characters in *s* c 阅读全文
posted @ 2020-08-17 16:13 mhp 阅读(87) 评论(0) 推荐(0)