摘要:
Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read th 阅读全文
阅读排行榜
[LeetCode] 78. Subsets tag: backtracking
2018-08-08 00:26 by Johnson_强生仔仔, 276 阅读, 收藏,
摘要:
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exampl 阅读全文
[LeetCode] 364. Nested List Weight Sum II_Medium tag:DFS
2018-08-16 00:21 by Johnson_强生仔仔, 274 阅读, 收藏,
摘要:
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w 阅读全文
[LeetCode] 787. Cheapest Flights Within K Stops_Medium tag: Dynamic Programming, BFS, Heap
2018-08-09 00:00 by Johnson_强生仔仔, 274 阅读, 收藏,
摘要:
There are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w. Now given all the cities and fights, togethe 阅读全文
[LeetCode] 329. Longest Increasing Path in a Matrix_Hard tag: Dynamic Programming, DFS, Memoization
2018-07-25 06:25 by Johnson_强生仔仔, 274 阅读, 收藏,
摘要:
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four directions: left, right, up or do 阅读全文
浙公网安备 33010602011771号