Given a non-empty, singly linked list with head node head, return a middle node of linked list.If there are two middle nodes, return the second middle... ...
分类:
其他好文 时间:
2018-10-27 14:52:07
阅读次数:
101
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 first two lists.Example:I... ...
分类:
其他好文 时间:
2018-10-27 14:50:26
阅读次数:
129
19. Remove Nth Node From End of List 删除倒数第N个结点 21. Merge Two Sorted Lists 合并两个有序链表 141. Linked List Cycle 检查链表中是否有环 206. Reverse Linked List 反转链表 876. ...
分类:
编程语言 时间:
2018-10-27 13:23:07
阅读次数:
191
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati ...
分类:
其他好文 时间:
2018-10-27 00:22:06
阅读次数:
121
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and num ...
分类:
其他好文 时间:
2018-10-27 00:13:26
阅读次数:
109
Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree. Exa ...
分类:
其他好文 时间:
2018-10-25 00:18:47
阅读次数:
205
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
分类:
其他好文 时间:
2018-10-25 00:12:50
阅读次数:
155
http://codeforces.com/contest/1015/problem/B You are given two strings ss and tt. Both strings have length nn and consist of lowercase Latin letters. ...
分类:
其他好文 时间:
2018-10-24 22:28:42
阅读次数:
448
DescriptionGiven an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.Th... ...
分类:
其他好文 时间:
2018-10-24 22:15:00
阅读次数:
157
题设: 解题思路: 使用加法器 代码: 结果: python本地运行:通过 run code运行:通过,运行时间32ms submit结果:不通过,报“超出内存限制” ...
分类:
其他好文 时间:
2018-10-24 20:27:05
阅读次数:
166