**Maximum Water Between Two Buildings**

Given an integer array representing the heights of N buildings, the task is to delete N-2 buildings such that the water that can be trapped between the remaining two building is maximum. Maximum Water Between Two Buildings Disclaimer: This probl... Read more

## Smallest Positive missing number in Java

You are given an array arr[] of N integers including 0. The task is to find the smallest positive number missing from the array. Example 1: Input: N = 5 arr[] = {1,2,3,4,5} Output: 6 Smallest Positive missing number in Java Discla... Read more

## Count More than n/k Occurences GFG SOlution

Given an array arr[] of size N and an element k. The task is to find all elements in array that appear more than n/k times. Example 1: Input: N = 8 arr[] = {3,1,2,2,1,2,3,3} k = 4 Output: 2 Disclaimer: This problem() is originally created by Gee... Read more

## Subarray with given sum Solution In Java

Given an unsorted array A of size N that contains only non-negative integers, find a continuous sub-array which adds to a given number S and return the left and right index of that subarray. In case of multiple... Read more

## Median of Two Sorted Arrays GFG Solution in Java

Given two sorted arrays of sizes N and M respectively. The task is to find the median of the two arrays when they get merged.If there are even number of elements in the resulting array, find the floor of the average of two medians. Example 1: In... Read more

## Read Space Separated Value in Java

Hello coders, In this blog, we will learn how to take inputs from the user and the inputs are separated by space. If you struggling to take input space-separated values from the user. Then, this blog is for you. Input : 1 2 3 4 5 Output: 1 2 3 4... Read more

## Number of Islands GFG Solution in Java

Hello coders, This is another problem from GFG practice named “Number of Islands “. Problem Statement: Given a grid of size n*m (n is the number of rows and m is the number of columns in the grid) consisting of ‘0’s (Wate... Read more

Hello coders, I am here with another solution for the problem of “Minimum Number of Jumps to Reach end of Array Solution“. Problem Statement: Given an array of N integers arr[] where each element represents the ma... Read more

In this blog, I show you a bunch of cool projects you can do with just basic javascript. That is the reason I titled this blog “JavaScript Projects for Beginners with Source Code”. These projects are compiled mainly for beginners who are j... Read more

## Remove Element Leetcode Solution

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. Since it is impossible to change the length of the array in some languages, you must instead have... Read more