Given an array of N integers. The task is to find the maximum difference between the index of any two different numbers. Note that there… Read More »

Given a binary array and Q queries. Every query consists of a number K, the task is to print the number of ones and zeros… Read More »

Prerequisite: min() max() in Python Let’s see some interesting facts about min() and max() function. These functions are used to compute the maximum and minimum… Read More »

The below section deals about overload resolution as it helps in the fundamentals of overloading and overriding. Predict the output: Output: hello gfg-class specific hello… Read More »

Tech-Set-Go 2018 Eligibility: Microsoft gives an opportunity to all undergraduate and postgraduate students for 2 months summer internship program. Basic criteria to apply for Microsoft… Read More »

Interactive Problems are those problems in which our solution or code interacts with the judge in real time. When we develop a solution for an… Read More »

Given an array arr[] of size N. The task is to make all the array elements equal by applying the below operations minimum number of… Read More »

How to solve problems that fall in the Finders keepers category in ‘Game Theory’? Note- Finders keepers game fall into the category of ‘Impartial Games’… Read More »

Recently, Amazon held a Pool Campus drive at Pune in which students from various colleges in the city had appeared. Job Profile: Software Development Engineer… Read More »

Given a date in GregorianCalendar format change it into SimpleDateFormat. Examples: Input: Sat Apr 28 13:36:37 UTC 2018 Output: 28-Apr-2018 Input: Wed Apr 03 20:49:45… Read More »

Input text autocomplete is the default feature of any browser. While working with the form or input fields in HTML web page autocomplete feature of… Read More »

Given an integer k and a linked list, every node of which consists of a pair of integer variable first and second to hold the… Read More »

Given a string str, the task is to find the count of all the sub-strings of length four whose characters can be rearranged to form… Read More »

Given an array arr[], the task is increment all the odd positioned elements by 1 and decrement all the even positioned elements by 1. Examples:… Read More »

Barclays recently visited my Campus. Eligibility criteria was cgpa > 7 and no live backlog . Only Comp and IT were allowed . Around 120… Read More »

Given a linked list, the task is to find the sum of all the nodes which are greater than the node next to them. Note… Read More »

Given the NxN grid of horizontal and vertical roads. The task is to find out the number of ways that the person can go from… Read More »

Given the count of digits 1, 2, 3, 4. Using these digits you are allowed to only form numbers 234 and 12. The task is… Read More »

A person hosts a party and invites N guests to it. However, each guest has a condition, that each guest ‘Gi’ only stays at the… Read More »

Given two integers A and B, the task is to calculate 22A % B. Examples: Input: A = 3, B = 5 Output: 1 223… Read More »