Posts by Mohit Goswami

Author Biographical Info: Not available

Java Program to remove odd frequency characters in a string

By Mohit Goswami

In this tutorial, we are going to remove the characters from a string that appears an odd number of times in it. We are going to use HashMap in JAVA to improve our time complexity .... Read More

How to Sort a nearly sorted (or K sorted) array in Java

By Mohit Goswami

In this tutorial, we will write the code for this most frequently asked interview question “Sort a nearly k-sorted array” in Java. Using Min Heap in Java We are going t.... Read More

Solve Coin Change problem in Java

By Mohit Goswami

In this tutorial, we are looking forward to solving one of the most frequently asked interview problems ” The coin change” using dynamic programming. Solving the coin c.... Read More

Lexicographically next permutation in C++

By Mohit Goswami

In this tutorial, we going to find the next permutation of a string in lexicographically (dictionary order) in C++. The basic need for this is when doing mathematical problems requ.... Read More

Find the Largest triplet product in a stream in Java

By Mohit Goswami

In this tutorial, we are going to find the Largest triplet product in Java. This is a very basic problem and an example of heaps or priority_queue. Priority Queue in Java or (MAX H.... Read More

Python program to find Largest Derangement of Sequence in Heap

By Mohit Goswami

In this tutorial, we are going to find the largest Derangement of Sequence using the heap data structure in Python. We will be given a sequence S of length n. The Derangement means.... Read More

Counter Project in JavaScript

By Mohit Goswami

In this tutorial, we are going to do a JavaScript counter project in which we will show a value on the custom HTML page and this value will increase by 1 when we click on the + but.... Read More