MCPcopy Create free account
hub / github.com/aylei/leetcode-rust / Solution

Class Solution

src/solution/s0257_binary_tree_paths.rs:24–24  ·  view source on GitHub ↗

* [257] Binary Tree Paths * * Given a binary tree, return all root-to-leaf paths. * * Note: A leaf is a node with no children. * * Example: * * * Input: * * 1 * / \ * 2 3 * \ * 5 * * Output: ["1->2->5", "1->3"] * * Explanation: All root-to-leaf paths are: 1->2->5, 1->3 * */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected