
算法,leetcode,深度优先搜索
文章平均质量分 77
Zarlove
这个作者很懒,什么都没留下…
展开
-
Leetcode算法学习日志-386 Lexicographical Numbers
Leetcode 386 Lexicographical Numbers题目原文Given an integer n, return 1 - n in lexicographical order.For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9].Please optimize your algorith原创 2017-11-14 15:09:51 · 392 阅读 · 0 评论 -
Leetcode算法学习日志-257 Binary Tree Paths
Leetcode 257 Binary Tree Paths题目原文Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["原创 2017-12-20 11:55:21 · 338 阅读 · 0 评论