代码改变世界

阅读排行榜

[LeetCode] 872. Leaf-Similar Trees_Easy tag: DFS

2018-08-28 00:01 by Johnson_强生仔仔, 228 阅读, 收藏,
摘要: Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence. For example, in the given t 阅读全文

[LeetCode] 120. Triangle _Medium tag: Dynamic Programming

2019-04-22 04:24 by Johnson_强生仔仔, 227 阅读, 收藏,
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo 阅读全文

[Java] Create File with java.io.File class

2018-10-31 01:34 by Johnson_强生仔仔, 227 阅读, 收藏,
摘要: Create a file with some content in some specific location. The reference is here. E.g if want to create a HelloWorld.txt file, then we just need to us 阅读全文

[LeetCode] 849. Maximize Distance to Closest Person_Easy tag: BFS

2018-08-19 05:35 by Johnson_强生仔仔, 227 阅读, 收藏,
摘要: In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty. There is at least one empty seat, and at least 阅读全文

[LeetCode] 704. Binary Search_Easy tag: Binary Search

2018-08-29 06:52 by Johnson_强生仔仔, 226 阅读, 收藏,
摘要: Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If target exists, 阅读全文
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 78 下一页