上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页
摘要: 题目: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co 阅读全文
posted @ 2017-04-04 02:32 panini 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest path b 阅读全文
posted @ 2017-04-01 23:42 panini 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目 : Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If the 阅读全文
posted @ 2017-04-01 23:30 panini 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers and an integer k, you need to find the number of unique k-diff pairs in the array. Here a k-diff pair is defined as an 阅读全文
posted @ 2017-04-01 05:29 panini 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Note: There ar 阅读全文
posted @ 2017-04-01 04:41 panini 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when on 阅读全文
posted @ 2017-04-01 03:02 panini 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 题目: We define the Perfect Number is a positive integer that is equal to the sum of all its positive divisors except itself. Now, given an integer n, w 阅读全文
posted @ 2017-04-01 02:30 panini 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 题目: Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", 阅读全文
posted @ 2017-03-31 06:50 panini 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [-1e7, 1e7]. 链接:https://leetc 阅读全文
posted @ 2017-03-31 05:50 panini 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is de 阅读全文
posted @ 2017-03-31 04:27 panini 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页