Best Time To Buy And Sell Stock
Best Time To Buy And Sell Stock: You are given an array prices where prices[i] is the price of a given stock on the ith day.
Best Time To Buy And Sell Stock: You are given an array prices where prices[i] is the price of a given stock on the ith day.
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.
Single Number: Given a non-empty array of integers nums, every element appears twice except for one.
Find All Numbers Disappeared in an Array: Given an array nums of n integers where nums[i] is in the range [1,n], return an array of all the integers in the…
Diameter of Binary Tree: Given the root of a binary tree, return the length of the diameter of the tree.
Path Sum: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along…