
树
importsys
zjuer
展开
-
Leetcode K-th Smallest in Lexicographical Order详解
440. K-th Smallest in Lexicographical Order Description: Given integers n and k, find the lexicographically k-th smallest integer in the range from 1 to n. Note: 1 ≤ k ≤ n ≤ 109. Example: Input: n: 13...原创 2019-05-27 19:24:29 · 614 阅读 · 0 评论 -
LeetCode 112. Path Sum 路径总和
Leetcode 112. Path Sum 路径总和112. Path Sum 路径总和题目描述示例:解答1代码1解答2代码2 112. Path Sum 路径总和 题目描述 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values...原创 2019-06-05 21:45:50 · 225 阅读 · 0 评论