代码改变世界

阅读排行榜

[LeetCode] 199. Binary Tree Right Side View_ Medium tag: BFS, Amazon

2018-07-04 04:04 by Johnson_强生仔仔, 201 阅读, 收藏,
摘要: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example 阅读全文

[LeetCode] 167. Two Sum II - Input array is sorted_Easy tag: Hash/Two pointers

2019-05-31 10:22 by Johnson_强生仔仔, 200 阅读, 收藏,
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文

[LeetCode] 441. Arranging Coins_Easy tag: Math

2018-08-18 12:13 by Johnson_强生仔仔, 200 阅读, 收藏,
摘要: You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number 阅读全文

[LeetCode] 243. Shortest Word Distance_Easy

2018-08-16 12:08 by Johnson_强生仔仔, 200 阅读, 收藏,
摘要: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. Example:Assume that words = ["p 阅读全文

[LeetCode] 82. Remove Duplicates from Sorted List II_Medium tag: Linked List

2019-04-30 11:12 by Johnson_强生仔仔, 197 阅读, 收藏,
摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinctnumbers from the original list. Example 1: Input: 1->2- 阅读全文
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 78 下一页