上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页
摘要: 题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2-... 阅读全文
posted @ 2015-08-26 09:44 Hygeia 阅读(161) 评论(0) 推荐(0)
摘要: 题目:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, r... 阅读全文
posted @ 2015-08-26 01:13 Hygeia 阅读(216) 评论(0) 推荐(0)
摘要: 题目:Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 –> 2 –> 6 –> 3 –> 4 –> 5 –> 6,val= 6Return:1 –> 2 –> 3 –> 4 –>... 阅读全文
posted @ 2015-08-24 13:58 Hygeia 阅读(136) 评论(0) 推荐(0)
摘要: 题目:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After... 阅读全文
posted @ 2015-08-24 06:51 Hygeia 阅读(143) 评论(0) 推荐(0)
摘要: 题目:Reverse a singly linked list.代码:看不懂,我已经没救了 1 public ListNode reverseList(ListNode head) { 2 if (head == null) return head; 3 Li... 阅读全文
posted @ 2015-08-10 13:41 Hygeia 阅读(102) 评论(0) 推荐(0)
摘要: 题目: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains 阅读全文
posted @ 2015-08-10 07:22 Hygeia 阅读(164) 评论(0) 推荐(0)
摘要: 题目:Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the n... 阅读全文
posted @ 2015-08-10 06:13 Hygeia 阅读(241) 评论(0) 推荐(0)
摘要: 题目:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the de... 阅读全文
posted @ 2015-08-09 03:26 Hygeia 阅读(134) 评论(0) 推荐(0)
摘要: 题目:Write a SQL query to delete all duplicate email entries in a table namedPerson, keeping only unique emails based on itssmallestId.+----+-----------... 阅读全文
posted @ 2015-08-07 10:47 Hygeia 阅读(144) 评论(0) 推荐(0)
摘要: 题目:Given aWeathertable, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.+---------+-----... 阅读全文
posted @ 2015-08-07 10:27 Hygeia 阅读(187) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页