上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页
摘要: Check if N and Its Double Exist Given an array arr of integers, check if there exist two indices i and j such that : i != j 0 <= i, j < arr.length arr 阅读全文
posted @ 2023-02-15 21:22 iyiluo 阅读(12) 评论(0) 推荐(0)
摘要: How Many Numbers Are Smaller Than the Current Number Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it 阅读全文
posted @ 2023-02-15 21:22 iyiluo 阅读(14) 评论(0) 推荐(0)
摘要: Generate a String With Characters That Have Odd Counts Given an integer n, return a string with n characters such that each character in such string o 阅读全文
posted @ 2023-02-15 21:21 iyiluo 阅读(14) 评论(0) 推荐(0)
摘要: N-ary Tree Preorder Traversal Given the root of an n-ary tree, return the preorder traversal of its nodes' values. Nary-Tree input serialization is re 阅读全文
posted @ 2023-01-30 22:17 iyiluo 阅读(16) 评论(0) 推荐(0)
摘要: N-ary Tree postorder Traversal Given the root of an n-ary tree, return the postorder traversal of its nodes' values. Nary-Tree input serialization is 阅读全文
posted @ 2023-01-30 22:17 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要: Construct String from Binary Tree Given the root of a binary tree, construct a string consisting of parenthesis and integers from a binary tree with t 阅读全文
posted @ 2023-01-30 22:17 iyiluo 阅读(21) 评论(0) 推荐(0)
摘要: Merge Two Binary Trees You are given two binary trees root1 and root2. Imagine that when you put one of them to cover the other, some nodes of the two 阅读全文
posted @ 2023-01-30 22:17 iyiluo 阅读(15) 评论(0) 推荐(0)
摘要: Average of Levels in Binary Tree Given the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers 阅读全文
posted @ 2023-01-30 22:16 iyiluo 阅读(18) 评论(0) 推荐(0)
摘要: Implement Queue using Stacks Implement a first in first out (FIFO) queue using only two stacks. The implemented queue should support all the functions 阅读全文
posted @ 2023-01-30 22:16 iyiluo 阅读(18) 评论(0) 推荐(0)
摘要: Two Sum IV - Input is a BST Given the root of a binary search tree and an integer k, return true if there exist two elements in the BST such that thei 阅读全文
posted @ 2023-01-30 22:16 iyiluo 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 33 下一页