代码改变世界

阅读排行榜

[LeetCode] 721. Accounts Merge_Medium tag: DFS recursive

2018-07-19 04:03 by Johnson_强生仔仔, 306 阅读, 收藏,
摘要: Given a list accounts, each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of the elements a 阅读全文

[Java in NetBeans] Lesson 15. Sorting and Searching.

2019-01-01 03:41 by Johnson_强生仔仔, 304 阅读, 收藏,
摘要: 这个课程的参考视频和图片来自youtube。 主要学到的知识点有: Build in functions in java.util.Collections Need to implement a comparator - a special class which returns an intege 阅读全文

[LeetCode] 143. Reorder List_Middle tag: Linked List

2019-05-03 10:37 by Johnson_强生仔仔, 303 阅读, 收藏,
摘要: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify the values in the list's nodes, only nodes its 阅读全文

[LeetCode] 132. Palindrome Partitioning II_ Hard tag: Dynamic Programming

2019-04-25 11:14 by Johnson_强生仔仔, 303 阅读, 收藏,
摘要: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning 阅读全文

[LeetCode] 331. Verify Preorder Serialization of a Binary Tree_Medium tag: stack

2018-07-25 05:19 by Johnson_强生仔仔, 303 阅读, 收藏,
摘要: One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, 阅读全文
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 78 下一页