摘要: You have a binary tree with a small defect. There is exactly one invalid node where its right child incorrectly points to another node at the same dep 阅读全文
posted @ 2020-12-05 10:36 CNoodle 阅读(510) 评论(0) 推荐(0)
摘要: Given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0. Consider a list of all factors of n sorted 阅读全文
posted @ 2020-12-05 07:22 CNoodle 阅读(341) 评论(0) 推荐(0)
摘要: Given a binary tree where every node has a unique value, and a target key k, find the value of the nearest leaf node to target k in the tree. Here, ne 阅读全文
posted @ 2020-12-05 00:27 CNoodle 阅读(226) 评论(0) 推荐(0)