码迷,mamicode.com
首页 >  
搜索关键字:median of two sor    ( 12209个结果
leetcode-876 Middle of the Linked List
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
leetcode-21 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 first two lists.Example:I... ...
分类:其他好文   时间:2018-10-27 14:50:26    阅读次数:129
LeetCode算法题-C#代码实现-链表
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
87. Scramble String
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
88. Merge Sorted Array
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
783. Minimum Distance Between BST Nodes
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
796. Rotate String
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
CodeForces B. Obtaining the String
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
167.Two Sum II–Input is sorted
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
Leetcode - 371. Sum of Two Integers
题设: 解题思路: 使用加法器 代码: 结果: python本地运行:通过 run code运行:通过,运行时间32ms submit结果:不通过,报“超出内存限制” ...
分类:其他好文   时间:2018-10-24 20:27:05    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!