码迷,mamicode.com
首页 >  
搜索关键字:should be repaired    ( 4956个结果
leetcode Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2014-11-14 08:08:24    阅读次数:197
leetcode .First Missing Positive
Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:其他好文   时间:2014-11-13 22:11:38    阅读次数:141
Single Number (15)
Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex...
分类:其他好文   时间:2014-11-13 16:03:20    阅读次数:139
leetcode--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 should preserve the original relative order of the nodes in each of...
分类:其他好文   时间:2014-11-13 14:45:51    阅读次数:172
2000条你应知的WPF小姿势 基础篇<63-68 Triggers和WPF类逻辑结构>
原文:2000条你应知的WPF小姿势 基础篇 在正文开始之前需要介绍一个人:Sean Sexton.来自明尼苏达双城的软件工程师。最为出色的是他维护了两个博客:2,000ThingsYou Should Know About C#和2,000 Things You Should Know About...
分类:Windows程序   时间:2014-11-12 19:21:33    阅读次数:238
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-11-12 16:15:21    阅读次数:118
[leetcode]Spiral Matrix II
问题描述: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9,...
分类:其他好文   时间:2014-11-12 15:06:18    阅读次数:183
[leetcode]Two Sum
问题描述: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the targ...
分类:其他好文   时间:2014-11-11 21:10:38    阅读次数:111
两个排序数组求中位数
# 题目 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). # 思路 1. 丢掉一个最小的,...
分类:编程语言   时间:2014-11-11 19:26:00    阅读次数:285
LeetCode:Median of Two Sorted Arrays
题目描述: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 思路:写一个找两个数组中第k大数的函数,...
分类:其他好文   时间:2014-11-11 12:45:34    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!