摘要: 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 @ 2017-03-04 22:13 wilderness 阅读(175) 评论(0) 推荐(0)
摘要: Given an array of integers, every element appears twice except for one. Find that single one. 找出一个数组中唯一一个只出现了一次的数,其余的都出现了两次 阅读全文
posted @ 2017-03-04 20:56 wilderness 阅读(114) 评论(0) 推荐(0)
摘要: Given a binary tree, return the inorder traversal of its nodes' values. For example:Given binary tree [1,null,2,3], return [1,3,2]. 题意:中序遍历树 先写一种比较蠢的方 阅读全文
posted @ 2017-03-04 20:31 wilderness 阅读(152) 评论(0) 推荐(0)
摘要: Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret 阅读全文
posted @ 2017-03-04 12:24 wilderness 阅读(212) 评论(0) 推荐(0)
摘要: Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft 阅读全文
posted @ 2017-03-04 12:13 wilderness 阅读(173) 评论(0) 推荐(0)