码迷,mamicode.com
首页 >  
搜索关键字:without    ( 3201个结果
Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra space?思路...
分类:其他好文   时间:2014-08-11 20:48:22    阅读次数:220
Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?思路:使用两个指针slow和fast,分别以1和2的速度遍历链表。若链表中存在环,则...
分类:其他好文   时间:2014-08-11 20:45:12    阅读次数:230
Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e...
分类:其他好文   时间:2014-08-11 14:44:32    阅读次数:186
pycharm每日技巧-3
Did you know that you can close tabs in the editor and the tool windows of PyCharm without actually using the context menu commands? It is enough to p...
分类:其他好文   时间:2014-08-11 11:23:52    阅读次数:211
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.按照palindrome的定义,负数一定不是palindrome number。而且palindrome number肯定是沿着中轴(可能为一个数或者两...
分类:其他好文   时间:2014-08-09 18:37:28    阅读次数:213
Leetcode--Recover Binary Search Tree
Problem Description: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straigh...
分类:其他好文   时间:2014-08-08 21:22:36    阅读次数:315
[leetcode]Divide Two Integers
Divide Two IntegersDivide two integers without using multiplication, division and mod operator.不用* 、/、%来做除法。只能加减了啊亲!算法思路:一个一个加上去必超时,例如dividend = Integ...
分类:其他好文   时间:2014-08-08 20:59:36    阅读次数:186
linux的启动模式的设置及root用户密码的修改
1.修改启动模式:进入命令行终端使用这个命令[root@localhost~]#vi/etc/inittabid:5:initdefault:5为图形界面模式3为多用户开发者模式敲击i进入编辑模式,将5修改为3执行Esc->:wq->reboot修改成功!2.修改root密码:a.启动系统,b.在界面启动时让它停留一下,随便按一下..
分类:系统相关   时间:2014-08-06 23:15:52    阅读次数:446
MVC添加数据并存入数据库
你可以下载演示的数据库,在这篇《MVC显示详细记录Without Entity Framework》http://www.cnblogs.com/insus/p/3366608.html结束处有下载地址。恢复到SQL之后,添加一个存储过程。在MVC应用程序中,找到Models目录,打开FruitCa...
分类:数据库   时间:2014-08-06 18:07:41    阅读次数:312
MVC显示详细记录Without Entity Framework
看过此篇《MVC用非Entity Framework将数据显示于视图(二)》http://www.cnblogs.com/insus/p/3364482.html了解到把数据库中数据表的数据显示于视图上。某一情况,我需要点击一下记录,能查看到其详细的数据。在MVC实现这样的功能,其实也是很简单的。我...
分类:Web程序   时间:2014-08-06 18:04:41    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!