摘要: 题目:Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3... 阅读全文
posted @ 2015-09-01 10:55 savageclc26 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appears twice except for one. Find that single one.Your algorithm should have a linear runtime complexity... 阅读全文
posted @ 2015-09-01 10:22 savageclc26 阅读(113) 评论(0) 推荐(0) 编辑
摘要: DFS: public static int maxDepth_DFS(Node root) { if(root == null){ return 0; } else{ int intLeftTr... 阅读全文
posted @ 2015-08-31 15:35 savageclc26 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Init Version 阅读全文
posted @ 2010-01-12 09:54 savageclc26 阅读(73) 评论(0) 推荐(0) 编辑