摘要: 4Sum (M) 题目 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? Find a 阅读全文
posted @ 2020-06-21 03:31 墨云黑 阅读(112) 评论(0) 推荐(0) 编辑
摘要: First Bad Version (E) 题目 You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your pr 阅读全文
posted @ 2020-06-20 06:00 墨云黑 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Integer to English Words (H) 题目 Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. 阅读全文
posted @ 2020-06-20 05:49 墨云黑 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Letter Combinations of a Phone Number (M) 题目 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the num 阅读全文
posted @ 2020-06-20 04:42 墨云黑 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 3Sum Closest (M) 题目 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Retur 阅读全文
posted @ 2020-06-20 03:17 墨云黑 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 3Sum (M) 题目 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 which 阅读全文
posted @ 2020-06-20 02:44 墨云黑 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Different Ways to Add Parentheses (M) 题目 Given a string of numbers and operators, return all possible results from computing all the different possibl 阅读全文
posted @ 2020-06-19 11:35 墨云黑 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Longest Common Prefix (E) 题目 Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, retu 阅读全文
posted @ 2020-06-19 08:07 墨云黑 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Roman to Integer (E) 题目 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 阅读全文
posted @ 2020-06-19 07:49 墨云黑 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Container With Most Water (M) 题目 Given n non-negative integers \(a_1, a_2, ..., a_n\) , where each represents a point at coordinate \((i, a_i)\). n ve 阅读全文
posted @ 2020-06-19 07:21 墨云黑 阅读(89) 评论(0) 推荐(0) 编辑