摘要: Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 阅读全文
posted @ 2020-05-13 11:52 Schwifty 阅读(127) 评论(0) 推荐(0)
摘要: Given a function f(x, y) and a value z, return all positive integer pairs x and y where f(x,y) == z. The function is constantly increasing, i.e.: f(x, 阅读全文
posted @ 2020-05-13 11:43 Schwifty 阅读(222) 评论(0) 推荐(0)
摘要: You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. 阅读全文
posted @ 2020-05-13 08:58 Schwifty 阅读(129) 评论(0) 推荐(0)