代码改变世界

阅读排行榜

[LeetCode] 675. Cut Off Trees for Golf Event_Hard tag: BFS

2018-07-04 23:13 by Johnson_强生仔仔, 535 阅读, 收藏,
摘要: You are asked to cut off trees in a forest for a golf event. The forest is represented as a non-negative 2D map, in this map: 0 represents the obstacl 阅读全文

[LeetCode] 590. N-ary Tree Postorder Traversal_Easy

2018-07-22 09:09 by Johnson_强生仔仔, 524 阅读, 收藏,
摘要: Given an n-ary tree, return the postorder traversal of its nodes' values. For example, given a 3-ary tree: Return its postorder traversal as: [5,6,3,2 阅读全文

[LeetCode] 589. N-ary Tree Preorder Traversal_Easy

2018-07-22 03:55 by Johnson_强生仔仔, 477 阅读, 收藏,
摘要: Given an n-ary tree, return the preorder traversal of its nodes' values. For example, given a 3-ary tree: Return its preorder traversal as: [1,3,5,6,2 阅读全文

[LeetCode] 139. Word Break_ Medium tag: Dynamic Programming

2019-04-26 11:08 by Johnson_强生仔仔, 465 阅读, 收藏,
摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ 阅读全文

[LeetCode] questions conlusion_InOrder, PreOrder, PostOrder traversal

2018-07-22 00:03 by Johnson_强生仔仔, 463 阅读, 收藏,
摘要: Pre: node 先, Inorder: node in, Postorder: node 最后 PreOrder Inorder PostOrder node-> left -> right left -> node ->right left -> right ->node Recursive 阅读全文
上一页 1 2 3 4 5 6 7 8 9 ··· 78 下一页