摘要: Guess Number Higher or Lower We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I pick 阅读全文
posted @ 2023-01-22 20:03 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要: Convert a Number to Hexadecimal Given an integer num, return a string representing its hexadecimal representation. For negative integers, two’s comple 阅读全文
posted @ 2023-01-22 20:03 iyiluo 阅读(20) 评论(0) 推荐(0)
摘要: Find Mode in Binary Search Tree Given the root of a binary search tree (BST) with duplicates, return all the mode(s) (i.e., the most frequently occurr 阅读全文
posted @ 2023-01-22 20:03 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: Minimum Absolute Difference in BST Given the root of a Binary Search Tree (BST), return the minimum absolute difference between the values of any two 阅读全文
posted @ 2023-01-22 20:02 iyiluo 阅读(19) 评论(0) 推荐(0)
摘要: Diameter of Binary Tree Given the root of a binary tree, return the length of the diameter of the tree. The diameter of a binary tree is the length of 阅读全文
posted @ 2023-01-22 19:58 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: Maximum Depth of N-ary Tree Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root 阅读全文
posted @ 2023-01-22 19:58 iyiluo 阅读(18) 评论(0) 推荐(0)
摘要: Subtree of Another Tree Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and no 阅读全文
posted @ 2023-01-22 19:57 iyiluo 阅读(19) 评论(0) 推荐(0)