什么是 clean code ?大神对优雅代码的定义: I like my code to be elegant and efficient. The
logic should be straightforward to make it hard
for bugs to hide, the dependencies minimal to
ease maintenance, error han...
分类:
其他好文 时间:
2015-06-06 09:12:49
阅读次数:
112
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...
分类:
其他好文 时间:
2015-06-06 09:11:05
阅读次数:
89
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解题思路:计算n能达到的5的最大次幂,算出在这种情况...
分类:
编程语言 时间:
2015-06-06 07:56:09
阅读次数:
203
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.
我的解决方案:
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2015-06-05 22:39:58
阅读次数:
167
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 nu...
分类:
其他好文 时间:
2015-06-05 19:12:16
阅读次数:
155
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:
其他好文 时间:
2015-06-05 19:08:09
阅读次数:
112
error: connection as sys should be as SYSDBA or SYSOPER用户名:sys密码: 自己设定的database:ORCLconnectas:SYSDBA忘记本地数据库密码/丢失本地密码,操作如下:sqlplus / as sysdbaalter use...
分类:
数据库 时间:
2015-06-05 17:06:06
阅读次数:
162
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. 题意:
合并两个排序过的链表 思路:...
分类:
其他好文 时间:
2015-06-05 14:05:27
阅读次数:
107
Problem Description:Design and implement a TwoSum class. It should support the following operations: add and find.add - Add the number to an internal ...
分类:
其他好文 时间:
2015-06-05 13:57:47
阅读次数:
168
转自爱米家的博客,原文:《Eight Terminal Utilities Every OS X Command Line User Should Know》OS X 的Terminal 终端开辟了强大的UNIX实用工具和脚本的世界。如果你是从Linux转移过来的用户,你会在OS X 终端上发现很多...
分类:
系统相关 时间:
2015-06-05 11:52:42
阅读次数:
334