leetcode note
草堂笺
手艺人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[leetcode note] Remove Duplicates from Sorted Array II
时间: 2019-12-25 10:12 PM 题目地址: https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/ Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twi...原创 2019-12-25 22:14:50 · 349 阅读 · 0 评论 -
[leetcode note] Container With Most Water
时间: 2019-12-11 题目地址: https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are d...原创 2019-12-24 11:06:56 · 390 阅读 · 0 评论 -
[leetcode note] 3Sum Closest
时间: 2019-12-16 题目地址: https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return th...原创 2019-12-16 20:14:38 · 340 阅读 · 0 评论 -
[leetcode note] 3Sum
时间: 9:21 PM 2019-12-12 题目地址: 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 triplets in the array w...原创 2019-12-15 14:46:41 · 301 阅读 · 0 评论 -
[leetcode note] Linked List Cycle
时间: 2019-12-12 题目地址: https://leetcode.com/problems/linked-list-cycle/ Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos whic...原创 2019-12-13 23:54:39 · 245 阅读 · 0 评论 -
[leetcode note] 3Sum Closest
时间: 2019-12-11 题目地址: 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 closest to target. Return th...原创 2019-12-13 23:54:19 · 220 阅读 · 0 评论 -
[leetcode note] Rotate List
时间: 2019-12-11 题目地址: https://leetcode.com/problems/rotate-list Given a linked list, rotate the list to the right by k places, where k is non-negative. 给定一个链表,将列表向右旋转k个位置,其中k为非负数。 Example 1: Input: 1...原创 2019-12-12 19:41:59 · 273 阅读 · 0 评论 -
[leetcode note] Partition List
时间: 2019-12-11 题目地址: https://leetcode.com/problems/partition-list/ Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You sh...原创 2019-12-12 19:41:45 · 164 阅读 · 0 评论 -
[leetcode note] Remove Duplicates from Sorted List
时间: 2019-12-11 题目地址: https://leetcode.com/problems/remove-duplicates-from-sorted-list/ Given a sorted linked list, delete all duplicates such that each element appear only once. 给定一个排序的链表,删除所有重复项,使每...原创 2019-12-11 21:04:39 · 201 阅读 · 0 评论 -
[leetcode note] Remove Duplicates from Sorted List II
时间: 2019-12-11 题目地址: https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/ Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from ...原创 2019-12-11 21:04:20 · 300 阅读 · 0 评论 -
[leetcode note] Remove Nth Node From End of List
时间: 2019-12-02 题目地址: https://leetcode.com/problems/remove-nth-node-from-end-of-list/ Given a linked list, remove the n-th node from the end of list and return its head. 给定一个链表,从列表末尾删除第n个节点并返回其头。 Exa...原创 2019-12-02 20:00:00 · 194 阅读 · 0 评论 -
[leetcode note] Merge Two Sorted Lists
时间: 2019-12-02 题目地址: https://leetcode.com/problems/merge-two-sorted-lists/ Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the...原创 2019-12-02 19:59:20 · 195 阅读 · 0 评论 -
[leetcode note] Sort an Array (INSERTION-SORT)
时间: 2019-10-22 11:56 PM 题目地址: https://leetcode.com/problems/sort-an-array/ Given an array of integers nums, sort the array in ascending order. 给定一个整型数组,升序排序。 Example 1: Input: [5,2,3,1] Output: [1,2...原创 2019-10-23 00:02:17 · 537 阅读 · 0 评论 -
[leetcode note] Palindrome Number
时间: 2019-10-12 12:03 AM 题目地址: https://leetcode.com/problems/palindrome-number/ Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. 判断...原创 2019-10-12 00:08:40 · 499 阅读 · 0 评论 -
[leetcode note] Longest Substring Without Repeating Characters
时间: 2019-10-11 12:37 AM 题目地址: https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeating characters. 给定一...原创 2019-10-11 00:40:58 · 366 阅读 · 0 评论 -
[leetcode note] Add Two Numbers
时间: 2019-10-09 11:19 PM 题目地址: https://leetcode.com/problems/add-two-numbers/ You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order an...原创 2019-10-09 23:25:19 · 331 阅读 · 1 评论 -
[leetcode note] Two Sum
给定一个整型数组,以数组的形式返回相加等于指定数值的元素索引。元素不可被使用两次。原创 2019-10-08 23:34:08 · 331 阅读 · 0 评论
分享