摘要:
Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both 阅读全文
阅读排行榜
[JavaScript] Frequently used method or solutions for issues
2019-04-03 02:09 by Johnson_强生仔仔, 238 阅读, 收藏,
摘要:
Get the file name from the file path Solution: 阅读全文
[LeetCode] 155. Min Stack_Easy tag: stack
2019-05-13 04:53 by Johnson_强生仔仔, 237 阅读, 收藏,
摘要:
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov 阅读全文
[LeetCode] 97. Interleaving String_ Hard tag: Dynamic Programming
2019-04-29 11:54 by Johnson_强生仔仔, 237 阅读, 收藏,
摘要:
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac" Output: 阅读全文
[LeetCode] 695. Max Area of Island_Medium tag: DFS/BFS
2019-11-24 00:07 by Johnson_强生仔仔, 236 阅读, 收藏,
摘要:
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
浙公网安备 33010602011771号