码迷,mamicode.com
首页 >  
搜索关键字:lc    ( 989个结果
[LC] 23. Merge k Sorted Lists
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: ...
分类:其他好文   时间:2020-01-01 11:48:12    阅读次数:88
[LC] 234. Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true /** * Defi ...
分类:其他好文   时间:2019-12-31 12:46:25    阅读次数:89
[LC] 328. Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the ...
分类:其他好文   时间:2019-12-30 09:49:26    阅读次数:79
[LC] 24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be ch ...
分类:其他好文   时间:2019-12-29 12:53:05    阅读次数:85
[LC] 206. Reverse Linked List
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL Follow up: A linked list can be reversed either iterativ ...
分类:其他好文   时间:2019-12-29 12:44:23    阅读次数:52
pve proxmox 常见问题,perl warning
pve命令,如下报错 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE ...
分类:其他好文   时间:2019-12-28 13:02:06    阅读次数:112
[LC] 221. Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. Example: Input: 1 0 1 0 0 1 0 1 1 1 ...
分类:其他好文   时间:2019-12-27 13:47:34    阅读次数:76
[LC] 142. Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. To represent a cycle in the given linked list, we use ...
分类:其他好文   时间:2019-12-19 13:11:36    阅读次数:64
[LC] 287. Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:其他好文   时间:2019-12-19 12:50:24    阅读次数:95
[LC] 256. Paint House
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai ...
分类:其他好文   时间:2019-12-17 13:32:55    阅读次数:80
989条   上一页 1 ... 16 17 18 19 20 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!