摘要:
一、Rank ScoresWrite a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the nex... 阅读全文
posted @ 2015-07-17 19:58
小金乌会发光-Z&M
阅读(198)
评论(0)
推荐(0)
摘要:
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?分析:题意为判断单链表是否为回文的。思路:首先想到的是 遍历一次单链表,... 阅读全文
posted @ 2015-07-17 17:13
小金乌会发光-Z&M
阅读(191)
评论(0)
推荐(0)
摘要:
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipedia: ... 阅读全文
posted @ 2015-07-17 10:55
小金乌会发光-Z&M
阅读(201)
评论(0)
推荐(0)

浙公网安备 33010602011771号