05 2014 档案

摘要:Among the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't ... 阅读全文
posted @ 2014-05-22 11:34 SunshineAtNoon 阅读(237) 评论(0) 推荐(0) 编辑
摘要:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a... 阅读全文
posted @ 2014-05-20 20:11 SunshineAtNoon 阅读(171) 评论(0) 推荐(0) 编辑
摘要:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =... 阅读全文
posted @ 2014-05-19 20:30 SunshineAtNoon 阅读(198) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2014-05-18 22:58 SunshineAtNoon 阅读(164) 评论(0) 推荐(0) 编辑
摘要:Given two words (startandend), and a dictionary, find the length of shortest transformation sequence fromstarttoend, such that:Only one letter can be ... 阅读全文
posted @ 2014-05-18 17:44 SunshineAtNoon 阅读(187) 评论(0) 推荐(0) 编辑
摘要:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ... 阅读全文
posted @ 2014-05-18 13:12 SunshineAtNoon 阅读(193) 评论(0) 推荐(0) 编辑
摘要:Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2014-05-16 17:52 SunshineAtNoon 阅读(227) 评论(0) 推荐(0) 编辑
摘要:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie... 阅读全文
posted @ 2014-05-16 16:21 SunshineAtNoon 阅读(269) 评论(0) 推荐(0) 编辑
摘要:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi... 阅读全文
posted @ 2014-05-16 11:07 SunshineAtNoon 阅读(192) 评论(0) 推荐(0) 编辑
摘要:A square pattern of size N x N (1 20 #include 21 #include 22 using namespace std; 23 24 //旋转90度的操作 25 int **transiformation_one(int before[][11],i... 阅读全文
posted @ 2014-05-15 11:13 SunshineAtNoon 阅读(305) 评论(0) 推荐(0) 编辑
摘要:Three farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in sec... 阅读全文
posted @ 2014-05-14 12:15 SunshineAtNoon 阅读(370) 评论(0) 推荐(0) 编辑
摘要:做exploratory data annalysis的作业,差点被虐死了,R从头开始,边做边学,最后搞到一点多才弄完,还有一个图怎么画都不对,最后发现是数据读取的时候有问题。用来画图的数据来自:http://archive.ics.uci.edu/ml/datasets/Individual+ho... 阅读全文
posted @ 2014-05-13 17:15 SunshineAtNoon 阅读(1113) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示