Second largest number in array in Java
In this Post, I am going to discuss how to find the second largest number in array in java. So, without wasting time, let’s start I am going to discuss the problem by using Java…
In this Post, I am going to discuss how to find the second largest number in array in java. So, without wasting time, let’s start I am going to discuss the problem by using Java…
So, In this post, we are going to discuss the program and algorithm of anagram In C/C++/Java. What matters is only the algorithm, If you better understand the Algorithm you can code in any language…
This is another editorial post of the code forces problem a-Good String. Detailed Editorial In this problem our task is to find the minimum number of moves required to obtain a-good string from the given…
This is another editorial post of the code forces problem Hilbert’s Hotel. Problem Hilbert’s Hotel is a very unusual hotel since the number of rooms is infinite! In fact, there is exactly one room for…
This is an editorial post of the codeforces problem Little Girl and Maximum Sum. Detailed Editorial If you observe the problem statement carefully, it is a range sum query problem that can be easily done…
This is an editorial post of the code forces problem Mashmokh and ACM. Problem Statement Mashmokh’s boss, Bimokh, didn’t like Mashmokh. So he fired him. Mashmokh decided to go to university and participate in ACM…
This is the Angry Delta Editorial Codechef. One day, Delta, the dog, got very angry. He has N items with different values, and he decided to destroy a few of them. However, Delta loves his…
In this post, we are going to discuss a famous Binary Search problem that is The Painter’s Partition Problem. Also, I am going to discuss a general way to tackle some
In the previous post, we discussed Topological Sorting and in this post, we are going to discuss two problems based on topological sort in c++. So, let’s start. Leetcode 210 : Course Schedule II There…
In the previous post, we have already discussed the map-based solution of the problem clone a link list with next and random pointer. The map-based solution took O(n) extra space but in this post, we…