Fork me on GitHub
摘要: 题目: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 is1 -> 2 -> 3 ... 阅读全文
posted @ 2015-08-17 17:11 __Neo 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complex... 阅读全文
posted @ 2015-08-17 14:22 __Neo 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest... 阅读全文
posted @ 2015-08-17 13:40 __Neo 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3... 阅读全文
posted @ 2015-08-17 11:37 __Neo 阅读(242) 评论(0) 推荐(0) 编辑