码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
leetcode-----17. 电话号码的字母组合
链接:https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/ 代码 class Solution { private String letters[] = {" ", "", "abc", "def", "ghi ...
分类:其他好文   时间:2020-06-13 21:47:24    阅读次数:71
leetcode-----19. 删除链表的倒数第N个节点
链接:https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 代码 /** * Definition for singly-linked list. * public class ListNode { * int val; ...
分类:其他好文   时间:2020-06-13 21:11:17    阅读次数:66
leetcode-----18. 四数之和
链接:https://leetcode-cn.com/problems/4sum/ 代码 class Solution { public List<List<Integer>> fourSum(int[] nums, int target) { List<List<Integer>> ans = n ...
分类:其他好文   时间:2020-06-13 21:04:30    阅读次数:53
leetcode-----20. 有效的括号
链接:https://leetcode-cn.com/problems/valid-parentheses/ 代码 class Solution { public boolean isValid(String str) { Stack<Character> stk = new Stack<>(); ...
分类:其他好文   时间:2020-06-13 20:55:01    阅读次数:60
224. Basic Calculator
package LeetCode_224 import java.util.* /** * 224. Basic Calculator * https://leetcode.com/problems/basic-calculator/description/ * * Implement a basi ...
分类:其他好文   时间:2020-06-13 19:22:56    阅读次数:53
LeetCode 322 零钱兑换
1.题目链接 https://leetcode-cn.com/problems/coin-change/ 2.题目描述 给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。如果没有任何一种硬币组合能组成总金额,返回 -1。 示例 1: 输 ...
分类:其他好文   时间:2020-06-13 17:24:42    阅读次数:80
leetcode-----16. 最接近的三数之和
链接:https://leetcode-cn.com/problems/3sum-closest/ 代码 class Solution { public int threeSumClosest(int[] nums, int target) { int ans = nums[0] + nums[1] ...
分类:其他好文   时间:2020-06-13 17:24:10    阅读次数:58
40. Combination Sum II
package LeetCode_40 /** * 40. Combination Sum II * https://leetcode.com/problems/combination-sum-ii/description/ * * Given a collection of candidate n ...
分类:其他好文   时间:2020-06-13 15:59:33    阅读次数:59
Leetcode 070 爬楼梯 动态规划
地址 https://leetcode-cn.com/problems/climbing-stairs/ 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢? 注意:给定 n 是一个正整数。 示例 1: 输入: 2 输出: 2 解释: ...
分类:其他好文   时间:2020-06-13 12:49:59    阅读次数:65
[LeetCode]1084. 销售分析III(Mysql,having+聚合函数)
###题目 Table: Product + + + | Column Name | Type | + + + | product_id | int | | product_name | varchar | | unit_price | int | + + + product_id 是这个表的主键 ...
分类:数据库   时间:2020-06-13 00:24:06    阅读次数:75
6275条   上一页 1 ... 45 46 47 48 49 ... 628 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!