Given a number n, check it is the Stella Octangula number or not. A number of the form where n is a whole number(0, 1,… Read More »
Given an array arr[] and a number k. The task is to delete k elements which are smaller than next element (i.e., we delete arr[i]… Read More »
Given a binary tree, find the vertical width of the binary tree. Width of a binary tree is the number of vertical paths. In this… Read More »
OpenCV provides many drawing functions to draw geometric shapes and write text on images. Let’s see some of the drawing functions and draw geometric shapes… Read More »
Here, key differences between Method and Function in Python are explained. Java is also an OOP language, but their is no concept of Function in… Read More »
Given a tree, the task is to find the maximum in an only left node of the binary tree. Examples: Input : 7 / \… Read More »
Nicomachu’s Theorem states that sum of cubes of first n natural numbers is equal to squares of natural number sum. In other words Or we… Read More »
We are given an integer N. We need to write a program to find the least positive integer X made up of only digits 9’s… Read More »
Round 1- Coderpad: 1) Find smallest element in sorted rotated array 2) Child can take 1, 2, 3 steps. Total steps he has to take… Read More »
You are given an n * n matrix which represent a graph with n-vertices, check whether the input matrix represent a star graph or not.… Read More »
Assign value by a pair of {} to a container As we are familiar with the pair there is also one thing known as tuples.… Read More »
Given a queue with random elements, we need to sort it. We are not allowed to use extra space. The operations allowed on queue are… Read More »
Given n people standing in a circle where 1st is having sword, find the luckiest person in the circle, if from 1st soldier who is… Read More »
Round 1: It was an aptitude round conducted by AMCAT. The round consists of 4 modules. Each question having only one correct answer.Going back to the previous question was… Read More »
Given a number, we need to find LCM of the factorial of the numbers and its neighbors. If the number is N, we need to… Read More »
Consider a disk pack with 16 surfaces, 128 tracks per surface and 256 sectors per track. 512 bytes of data are stored in a bit… Read More »
Given a string, check if all characters of it are in lowercase. Examples: Input : gfg123 Output : No Explanation : There are characters ‘1’,… Read More »
Given a doubly linked list, rotate the linked list counter-clockwise by N nodes. Here N is a given positive integer and is smaller than the… Read More »
Given an array A positive integers, sort the array in ascending order such that element at index K in unsorted array stays unmoved and all… Read More »
Given an integer value n, find out the n-th positive integer whose sum is 10. Examples: Input : n = 2 Output : 27 The… Read More »


