摘要:
1 """ 2 Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. 3 Note: A leaf is a node with no childr 阅读全文
摘要:
1 """ 2 In a special ranking system, each voter gives a rank from highest to lowest to all teams participated in the competition. 3 The ordering of te 阅读全文
摘要:
1 """ 2 Evaluate the value of an arithmetic expression in Reverse Polish Notation. 3 Valid operators are +, -, *, /. Each operand may be an integer or 阅读全文
摘要:
1 """ 2 Given a linked list, determine if it has a cycle in it. 3 To represent a cycle in the given linked list, we use an integer pos which represent 阅读全文
摘要:
1 """ 2 Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 3 For this problem, a height-balanced binary 阅读全文
摘要:
1 """ 2 Given a binary tree, determine if it is a valid binary search tree (BST). 3 Assume a BST is defined as follows: 4 The left subtree of a node c 阅读全文