05 2014 档案

摘要:array to binary search tree 阅读全文
posted @ 2014-05-31 09:27 hellogiser 阅读(526) 评论(0) 推荐(0)
摘要:linked list loop and intersections 阅读全文
posted @ 2014-05-31 08:20 hellogiser 阅读(2113) 评论(2) 推荐(3)
摘要:reverse string 阅读全文
posted @ 2014-05-30 15:52 hellogiser 阅读(330) 评论(0) 推荐(0)
摘要:Hamming Distance 阅读全文
posted @ 2014-05-30 12:02 hellogiser 阅读(5031) 评论(0) 推荐(0)
摘要:kmin-of-array 阅读全文
posted @ 2014-05-30 11:45 hellogiser 阅读(787) 评论(0) 推荐(0)
摘要:quick sort of array and linked list 阅读全文
posted @ 2014-05-30 11:36 hellogiser 阅读(837) 评论(0) 推荐(0)
摘要:reorder list 阅读全文
posted @ 2014-05-30 10:46 hellogiser 阅读(487) 评论(0) 推荐(0)
摘要:find number which appears 1 time while the remaining numbers appear 3 times. 阅读全文
posted @ 2014-05-28 21:31 hellogiser 阅读(1487) 评论(13) 推荐(1)
摘要:find N (N=1,2,3) numbers which appear only once in array 阅读全文
posted @ 2014-05-27 16:58 hellogiser 阅读(681) 评论(0) 推荐(0)
摘要:参见http://www.cnblogs.com/zhangziqiu/archive/2011/03/30/ComputerCode.html 阅读全文
posted @ 2014-05-27 10:53 hellogiser 阅读(158) 评论(0) 推荐(0)
摘要:roman to integer and integer to roman in c++ 阅读全文
posted @ 2014-05-27 08:11 hellogiser 阅读(1646) 评论(0) 推荐(0)
摘要:maximum/largest difference of array 阅读全文
posted @ 2014-05-26 12:20 hellogiser 阅读(2646) 评论(0) 推荐(0)
摘要:string-permutation-with-repeating-chars 阅读全文
posted @ 2014-05-26 08:33 hellogiser 阅读(1001) 评论(0) 推荐(0)
摘要:is balanced tree 阅读全文
posted @ 2014-05-25 15:18 hellogiser 阅读(990) 评论(0) 推荐(0)
摘要:using recursive and bitwise methods to get string combinations. 阅读全文
posted @ 2014-05-25 08:50 hellogiser 阅读(1749) 评论(4) 推荐(0)
摘要:eight queens puzzle 阅读全文
posted @ 2014-05-24 20:13 hellogiser 阅读(1299) 评论(0) 推荐(0)
摘要:sort ages with hashtable 阅读全文
posted @ 2014-05-24 14:47 hellogiser 阅读(338) 评论(0) 推荐(0)
摘要:add two numbers without arithmetic 阅读全文
posted @ 2014-05-24 14:13 hellogiser 阅读(1195) 评论(5) 推荐(1)
摘要:100-interview-questions-of-cplusplus-basics 阅读全文
posted @ 2014-05-24 08:05 hellogiser 阅读(1787) 评论(6) 推荐(2)
摘要:100-interview-questions-of-cplusplus-basics 阅读全文
posted @ 2014-05-23 21:28 hellogiser 阅读(2160) 评论(4) 推荐(1)
摘要:print matrix/2d-array in clockwise direction 阅读全文
posted @ 2014-05-23 19:52 hellogiser 阅读(990) 评论(6) 推荐(0)
摘要:subtree structure in tree 阅读全文
posted @ 2014-05-23 18:07 hellogiser 阅读(557) 评论(0) 推荐(0)
摘要:clone of complex linked list. 阅读全文
posted @ 2014-05-23 11:55 hellogiser 阅读(1610) 评论(1) 推荐(0)
摘要:Get lowest common ancestor of binary tree. 阅读全文
posted @ 2014-05-22 15:43 hellogiser 阅读(746) 评论(0) 推荐(1)
摘要:Find number which appears more than half times of array length. 阅读全文
posted @ 2014-05-22 09:21 hellogiser 阅读(442) 评论(0) 推荐(0)
摘要:Suffix Tree to get maximum symmetrical sub-string. 阅读全文
posted @ 2014-05-21 20:33 hellogiser 阅读(265) 评论(0) 推荐(0)
摘要:Implementation of singleton in C++/C#. 阅读全文
posted @ 2014-05-21 19:51 hellogiser 阅读(290) 评论(0) 推荐(0)
摘要:Calculate a^n in log(n). 阅读全文
posted @ 2014-05-21 18:14 hellogiser 阅读(347) 评论(0) 推荐(0)
摘要:Print sum S probability of N dices. 阅读全文
posted @ 2014-05-21 16:23 hellogiser 阅读(502) 评论(0) 推荐(0)
摘要:Get min value or smallest number of rotated array. 阅读全文
posted @ 2014-05-21 10:14 hellogiser 阅读(236) 评论(0) 推荐(0)
摘要:Sort array to min or smallest value. 阅读全文
posted @ 2014-05-20 19:43 hellogiser 阅读(432) 评论(0) 推荐(0)
摘要:Continuous cards. 阅读全文
posted @ 2014-05-20 14:50 hellogiser 阅读(403) 评论(0) 推荐(0)
摘要:Reverse a stack. 阅读全文
posted @ 2014-05-20 14:48 hellogiser 阅读(417) 评论(0) 推荐(0)
摘要:Print 1 to max number of N bits. 阅读全文
posted @ 2014-05-20 14:47 hellogiser 阅读(399) 评论(0) 推荐(0)
摘要:Ugly numbers. 阅读全文
posted @ 2014-05-20 14:45 hellogiser 阅读(394) 评论(0) 推荐(0)
摘要:Delete given chars from source string in O(n). 阅读全文
posted @ 2014-05-20 14:43 hellogiser 阅读(398) 评论(0) 推荐(0)
摘要:Find the first common node of two linked list. 阅读全文
posted @ 2014-05-20 14:40 hellogiser 阅读(576) 评论(0) 推荐(0)
摘要:Find a number which appears once in an array with all the other numbers appear twice. 阅读全文
posted @ 2014-05-20 14:38 hellogiser 阅读(391) 评论(0) 推荐(0)
摘要:Delete node in linked list in O(1). 阅读全文
posted @ 2014-05-20 14:35 hellogiser 阅读(370) 评论(0) 推荐(0)
摘要:A C++ final class. 阅读全文
posted @ 2014-05-20 14:31 hellogiser 阅读(814) 评论(0) 推荐(0)
摘要:Print a linked list from last to first. 阅读全文
posted @ 2014-05-20 14:28 hellogiser 阅读(320) 评论(0) 推荐(0)
摘要:Assign copy constructor. 阅读全文
posted @ 2014-05-20 14:24 hellogiser 阅读(254) 评论(0) 推荐(0)
摘要:Reorder an array so that odd numbers come before even numbers. 阅读全文
posted @ 2014-05-20 14:20 hellogiser 阅读(402) 评论(0) 推荐(0)
摘要:String's permutation. 阅读全文
posted @ 2014-05-20 14:16 hellogiser 阅读(477) 评论(0) 推荐(0)
摘要:Binary tree's depth or height. 阅读全文
posted @ 2014-05-20 14:12 hellogiser 阅读(565) 评论(0) 推荐(0)
摘要:Find continuous sequences between 1 to N whose sum equals to S. 阅读全文
posted @ 2014-05-20 14:11 hellogiser 阅读(310) 评论(0) 推荐(0)
摘要:Number of 1 between 1 to N. 阅读全文
posted @ 2014-05-20 14:07 hellogiser 阅读(334) 评论(0) 推荐(0)
摘要:Stack's push pop sequences. 阅读全文
posted @ 2014-05-20 14:03 hellogiser 阅读(427) 评论(0) 推荐(0)
摘要:DP and Fib. 阅读全文
posted @ 2014-05-20 14:02 hellogiser 阅读(317) 评论(0) 推荐(0)
摘要:The number of 1 bits in an integer. 阅读全文
posted @ 2014-05-20 14:00 hellogiser 阅读(295) 评论(0) 推荐(0)
摘要:Left rotate a string. 阅读全文
posted @ 2014-05-20 13:57 hellogiser 阅读(406) 评论(0) 推荐(0)
摘要:Longest common string(LCS). 阅读全文
posted @ 2014-05-20 13:54 hellogiser 阅读(151) 评论(0) 推荐(0)
摘要:Reverse a linked list. 阅读全文
posted @ 2014-05-20 13:52 hellogiser 阅读(244) 评论(0) 推荐(0)
摘要:2 stacks to implement a queue. 阅读全文
posted @ 2014-05-20 13:50 hellogiser 阅读(194) 评论(0) 推荐(0)
摘要:String to integer(atoi). 阅读全文
posted @ 2014-05-20 13:44 hellogiser 阅读(266) 评论(0) 推荐(0)
摘要:Dynamic programming and meta-programming to calculate Fib arrays. 阅读全文
posted @ 2014-05-20 13:41 hellogiser 阅读(265) 评论(0) 推荐(0)
摘要:C++ string class copy constructor and assign constructor. 阅读全文
posted @ 2014-05-20 13:35 hellogiser 阅读(267) 评论(0) 推荐(0)
摘要:Josephus problem. 阅读全文
posted @ 2014-05-20 13:27 hellogiser 阅读(259) 评论(0) 推荐(0)
摘要:Find first not repeating char in a string. 阅读全文
posted @ 2014-05-20 13:17 hellogiser 阅读(294) 评论(0) 推荐(0)
摘要:Visit a tree by level,namely BFS. 阅读全文
posted @ 2014-05-20 13:15 hellogiser 阅读(194) 评论(0) 推荐(0)
摘要:Mirror a binary search tree. 阅读全文
posted @ 2014-05-20 13:10 hellogiser 阅读(233) 评论(0) 推荐(0)
摘要:Find 2 numbers with given sum in sorted array. 阅读全文
posted @ 2014-05-20 13:03 hellogiser 阅读(241) 评论(0) 推荐(0)
摘要:Find the inverse Kth node of a linked list. 阅读全文
posted @ 2014-05-20 11:24 hellogiser 阅读(261) 评论(0) 推荐(0)
摘要:Another way to calculate sum of 1 to N. 阅读全文
posted @ 2014-05-20 11:18 hellogiser 阅读(301) 评论(0) 推荐(0)
摘要:Reverse the word order in a sentence, but maintain the character order inside a word. 阅读全文
posted @ 2014-05-20 11:11 hellogiser 阅读(474) 评论(0) 推荐(0)
摘要:Verify post-order sequence of binary search tree. 阅读全文
posted @ 2014-05-20 11:05 hellogiser 阅读(188) 评论(0) 推荐(0)
摘要:Find K least numbers. 阅读全文
posted @ 2014-05-20 10:50 hellogiser 阅读(353) 评论(0) 推荐(0)
摘要:Find paths whose node values equal to N in binary tree. 阅读全文
posted @ 2014-05-20 10:36 hellogiser 阅读(228) 评论(0) 推荐(0)
摘要:Maximum continuous sub-array. 阅读全文
posted @ 2014-05-20 10:26 hellogiser 阅读(287) 评论(0) 推荐(0)
摘要:Stack with min value. 阅读全文
posted @ 2014-05-20 10:03 hellogiser 阅读(212) 评论(1) 推荐(0)
摘要:Binary search tree to sorted double linked list. 阅读全文
posted @ 2014-05-20 09:16 hellogiser 阅读(241) 评论(0) 推荐(0)