Given an integer N and the task is to find a sequence of N prime numbers whose sum is a composite number. Examples: Input: N… Read More »

Given a linked list and an integer N, the task is to delete the Nth node from the end of the given linked list. Examples:… Read More »

Given an array arr[] of N integers, the task is to find the minimum deletions required such that frequency of arr[i] is exactly arr[i] in… Read More »

Given an array arr[] of size N and an integer K, the task is to find the Kth smallest element from the array in constant… Read More »

Given an array of integers of size N, The task is to print the consecutive integers as a range. Examples: Input : N = 7,… Read More »

Prerequisite: SQL | GROUP BY Error: Column ‘col’ is invalid in the select list because it is not contained in either an aggregate function or… Read More »

Given a string str consisting of a sentence, the task is to reverse the entire sentence word by word. Examples: Input: str = “geeks for… Read More »

We can call the private method of a class from another class in Java (which are defined using the private access modifier in Java). We… Read More »

The most important functionalities provided by programming languages is Reading and Writing files from the computers. Node.js provides the functionality to read and write files… Read More »

Round 1: The first round was an online Coding/Programming test conducted on mettl.com/. Many students across the country participated in this round. There were 3 questions… Read More »

Given an array arr[] of positive integers, the task is to find whether it is possible to make this array strictly decreasing by modifying at… Read More »

In this article we discuss the Cloneable interface that indicates that a class has provided a safe clone() method. To understand what cloning means recall… Read More »

Given an array arr[] and an integer X, the task is to find the indices such that: The sum of elements on the found indices… Read More »

Prerequisite – K-Map (Karnaugh Map), Implicants in K-Map A functions is said to be a Cyclic Boolean Function if there is no Essential prime Implicant… Read More »

Given an array Row[] of size R where Row[i] is the sum of elements of the ith row and another array Column[] of size C… Read More »

Round 1: Online coding on interviewbit (1 hour) 1. Given a linked list, subtract last node’s value from first and put it to first, subtract… Read More »

Round 1: Implement Find command in Linux. Asked to review a piece of code that was already written. Some behavioral questions Round 2: https://www.geeksforgeeks.org/assembly-line-scheduling-dp-34/ https://www.geeksforgeeks.org/connect-n-ropes-minimum-cost/… Read More »

Given an integer array ‘arr’ of length N and an integer ‘k’, select some non-overlapping subarrays such that each sub-array if of length at most… Read More »

Given two arrays a1[] and a2[], print elements of a1 in such a way that the relative order among the elements will be the same… Read More »

Round 1: (Technical) – Given a building as a 2D matrix with three possible values at each cell: P for Person, W for Wall and… Read More »