Palindrome Linked ListGiven a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?将链表拆成两半,后一半反转后...
分类:
其他好文 时间:
2015-07-11 18:23:04
阅读次数:
155
http://codeforces.com/problemset/problem/499/BB. LectureYou have a new professor of graph theory and he speaks very quickly. You come up with the foll...
分类:
其他好文 时间:
2015-07-11 14:57:09
阅读次数:
133
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?In order to fulfill...
分类:
其他好文 时间:
2015-07-11 13:35:43
阅读次数:
135
Sum It Up
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4874 Accepted Submission(s): 2553
Problem Description
Given a specified ...
分类:
其他好文 时间:
2015-07-11 09:13:19
阅读次数:
94
http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/1. 添加gemgem 'sprockets', '2.12.3' #默认sporckets的版本有bug2. app/assets/javas....
分类:
其他好文 时间:
2015-07-11 01:06:29
阅读次数:
247
Given a singly linked list, determine if it is a palindrome.Follow up:
Could you do it in O(n) time and O(1) space?思路:
把链表一分为二,把右边的一半翻转,再逐个比对左右的链表即可。/**
* Definition for singly-linked list.
* struc...
分类:
其他好文 时间:
2015-07-10 23:46:56
阅读次数:
388
http://www.hiredintech.com/system-design/Scopethe problem: Don't make assumptions; Ask questions; Understand the constraints and use cases.Sketch up a...
分类:
其他好文 时间:
2015-07-10 22:03:38
阅读次数:
136
Linux系统出现了性能问题,一般我们可以通过top.iostat,vmstat等命令来查看初步定位问题。 1. top top?-?16:50:36?up?1?day,??4:59,??2?users,??load?average:?0.06,?0.08,?0.08
Tasks:?159?t...
分类:
系统相关 时间:
2015-07-10 19:24:53
阅读次数:
214
题目:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed?Would this affect the run-time complexity? How and why?Write a function...
分类:
其他好文 时间:
2015-07-10 18:28:45
阅读次数:
105
linux命令之crontab@(linux_day_day_up)[LINUX]linux命令之crontab
crontab是用来设置周期性被执行的指令。
我们在linux中可用crontab -e来编辑crontab的配置文件以设定任务。
格式为:
minute(0-59) hour(0-23) day(1-31) month(1-12) week(0-6,0 stands for s...
分类:
系统相关 时间:
2015-07-10 16:40:31
阅读次数:
283