摘要: 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 @ 2015-06-03 16:39 TonyLuis 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime c... 阅读全文
posted @ 2015-06-03 16:02 TonyLuis 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complex... 阅读全文
posted @ 2015-06-03 12:10 TonyLuis 阅读(192) 评论(0) 推荐(0) 编辑
摘要: There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req... 阅读全文
posted @ 2015-06-03 12:02 TonyLuis 阅读(239) 评论(0) 推荐(0) 编辑