摘要: 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 next ... 阅读全文
posted @ 2015-06-07 23:41 `Liok 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig... 阅读全文
posted @ 2015-06-07 15:55 `Liok 阅读(773) 评论(0) 推荐(0) 编辑
摘要: N-Queens IIFollow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.https://leetcode... 阅读全文
posted @ 2015-06-07 15:28 `Liok 阅读(218) 评论(0) 推荐(0) 编辑
摘要: N-QueensThen-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all... 阅读全文
posted @ 2015-06-07 15:24 `Liok 阅读(378) 评论(0) 推荐(0) 编辑
摘要: Count Complete Tree NodesGiven acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary... 阅读全文
posted @ 2015-06-07 12:06 `Liok 阅读(238) 评论(0) 推荐(0) 编辑