摘要: https://leetcode.com/problems/next-permutation/ Implement next permutation, which rearranges numbers into the lexicographically next greater permutati 阅读全文
posted @ 2018-11-23 19:54 丧心病狂工科女 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/multiply-strings/ Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and n 阅读全文
posted @ 2018-11-23 18:50 丧心病狂工科女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/permutations-ii/ Given a collection of numbers that might contain duplicates, return all possible unique permutations. E 阅读全文
posted @ 2018-11-23 18:25 丧心病狂工科女 阅读(142) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/permutations/ Given a collection of distinct integers, return all possible permutations. Example: 代码: 全排列 $dfs$ 写就好的啦 第一 阅读全文
posted @ 2018-11-23 16:11 丧心病狂工科女 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ Given an array of integers nums sorted in ascending order, find 阅读全文
posted @ 2018-11-23 14:56 丧心病狂工科女 阅读(157) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/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 阅读全文
posted @ 2018-11-23 14:20 丧心病狂工科女 阅读(116) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/3sum-closest/ Given an array nums of n integers and an integer target, find three integers in nums such that the sum is 阅读全文
posted @ 2018-11-23 11:12 丧心病狂工科女 阅读(130) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/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 tri 阅读全文
posted @ 2018-11-23 10:10 丧心病狂工科女 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/trapping-rain-water/ Given n non-negative integers representing an elevation map where the width of each bar is 1, compu 阅读全文
posted @ 2018-11-23 09:24 丧心病狂工科女 阅读(160) 评论(0) 推荐(0) 编辑