Nitishkumarnitishkumar07.hashnode.dev·Jan 19, 2024DAY 4 #coding challengeProblem Statement (Top k numbers in a stream: medium) Given N numbers in an array, your task is to keep at most the top K numbers with respect to their frequency. In other words, you have to iterate over the array, and after each index, determine the...Discusspodt
Nitishkumarnitishkumar07.hashnode.dev·Jan 18, 2024DAY 3 #coding challengeProblem Statement (Water the plants : Medium) A gallery with plants is divided into n parts, numbered 0, 1, 2, 3, ..., n-1. There are provisions for attaching water sprinklers in every division. A sprinkler with range x at division i can water all di...Discusspodt
Nitishkumarnitishkumar07.hashnode.dev·Jan 17, 2024DAY 2 (2nd time)Problem Statement (podt : All Unique Permutations of an array: Medium level) Given an array arr[] of length n. Find all possible unique permutations of the array in sorted order. A sequence A is greater than sequence B if there is an index i for whic...Discusspodt
Nitishkumarnitishkumar07.hashnode.dev·Jan 16, 20242nd Attempt DAY 1Problem Statement (string : Largest number with given sum) easy question. Geek lost the password of his super locker. He remembers the number of digits N as well as the sum S of all the digits of his password. He know that his password is the largest...Discussstring
Nitishkumarnitishkumar07.hashnode.dev·Jan 12, 2024Day 2On Day 2 I did some 3 easy question on string questions with the PODT in geeksforgeeks. PODT question (easy) Given an integer K and a queue of integers, we need to reverse the order of the first K elements of the queue, leaving the other elements in ...Discusspodt
Nitishkumarnitishkumar07.hashnode.dev·Jan 11, 2024Day 1I started a day with Problem of the day in GeeksforGeeks. The coding question was named "Remove K Digits". it is a stack problem. Problem statement: Given a non-negative integer S represented as a string, remove K digits from the number so that the n...Discusspodt