Leetcode 958 || Check Completeness of a Binary TreeProblem Link https://leetcode.com/problems/check-completeness-of-a-binary-tree/ Problem Description The root of a tree is given as input. We have to check if the given tree is a complete binary tree or not. What is a complete binary tree? We will und...Mar 15, 2023 · 3 min readuh.hashnode.dev
Leetcode 129 || Sum Root to Leaf NumbersProblem Link https://leetcode.com/problems/sum-root-to-leaf-numbers/ Discussion As input, the root of a binary tree is given. What we need to do that, Explore all the paths from the root to the leaf Each root->leaf makes a number, need to take all ...Mar 14, 2023 · 4 min readuh.hashnode.dev
Leetcode 382 || Linked List Random NodeProblem link https://leetcode.com/problems/linked-list-random-node/ Description A linked list is given as input. There are two functions we need to implement. One of them is to initialize the LinkedList and another one is to get random values. And we...Mar 10, 2023 · 2 min readuh.hashnode.dev
Leetcode 875 || Koko Eating BananasProblem Link https://leetcode.com/problems/koko-eating-bananas/description/ Discussion and Solution Inputs piles : An array contains how many bananas ith pile has h : Within h hours Koko has to eat all the bananas Output k : Minimum speed of eating b...Mar 8, 2023 · 2 min readuh.hashnode.dev
Leetcode 2187 || Minimum Time to Complete TripsProblem Link https://leetcode.com/problems/minimum-time-to-complete-trips/description/ Discussion & Solution In this problem, an array of times is given along with totalTrips. Each number of the given array denotes how much time ith bus needs to comp...Mar 7, 2023 · 3 min readuh.hashnode.dev