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 »

Given two numbers, the task is to find the HCF of two numbers using Command Line Arguments. GCD (Greatest Common Divisor) or HCF (Highest Common… Read More »

Given two numbers, the task is to find the LCM of two numbers using Command Line Arguments. LCM (Least Common Multiple) of two numbers is… Read More »

Given a linked list and it may consist of duplicate nodes. The task is to find the sum of non-duplicate nodes. Examples: Input: 1 ->… Read More »

Given an array arr[] of n distinct integers. Elements are placed sequentially in ascending order with one element missing. The task is to find the… Read More »

Prerequisite: Different Approaches to Concurrent Programming in Java Lambda expressions are very similar in behaviour to anonymous inner classes. They have complete access to code… 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 undirected graph g, the task is to print the number of connected components in the graph. Examples: Input: Output: 3 There are three… Read More »

Given a number, the task is to find the Sum of Digits of this number using Command Line Arguments. Examples: Input: num = 687 Output:… Read More »

Given three integers N, X and Y. The task is to find N positive integers that satisfy the given equations. a12 + a22 + ….… 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 person who is at position current_pos and a binary string path which is the moves the person took, if path[i] = ‘0’ then… 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 »