代码改变世界

阅读排行榜

[LeetCode] 92. Reverse Linked List II_Medium tag: Linked List

2019-05-01 11:09 by Johnson_强生仔仔, 230 阅读, 收藏,
摘要: Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 这个题目是在[LeetCode] 206. Reverse Linked List_Ea 阅读全文

[Java in NetBeans] Lesson 14. ArrayList and Collections

2018-12-20 04:54 by Johnson_强生仔仔, 229 阅读, 收藏,
摘要: 这个课程的参考视频和图片来自youtube。 主要学到的知识点有: 1. Collection: container that contians objects. 2. Difference between Collection and Array note: int => Integer doub 阅读全文

[LeetCode] 532. K-diff Pairs in an Array_Easy tag: Hash Table

2018-08-17 11:44 by Johnson_强生仔仔, 229 阅读, 收藏,
摘要: 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 inte 阅读全文

[LeetCode] 116&117. Populating Next Right Pointers in Each Node I&II_Medium tag: BFS(Dont know why leetcode tag it as DFS...)

2018-07-13 07:33 by Johnson_强生仔仔, 229 阅读, 收藏,
摘要: Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its ne 阅读全文

[LeetCode] 84. Largest Rectangle in Histogram_Hard tag: stack

2019-05-15 00:20 by Johnson_强生仔仔, 228 阅读, 收藏,
摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 78 下一页