力扣
mzt_twilight
保持热情
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode237删除链表中的结点
LeetCode237 删除链表中的点 题目链接 static void deleteNode(ListNode node) { while (node.next != null) { int t = node.val; node.val = node.next.val; node.next.val = t; if (node.next.next == null){原创 2021-01-24 20:34:54 · 154 阅读 · 0 评论 -
LeetCode 两数之和
LeetCode 两数之和 题目链接 01 暴力 static int[] twoSum(int[] nums, int target) { int[] res = new int[2]; for (int i = 0; i < nums.length - 1; i++) { for (int j = i + 1; j < nums.length; j++) { if (target == (原创 2021-01-24 17:34:48 · 135 阅读 · 0 评论
分享