Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
Minimize length of an array by removing similar subarrays from both ends
Given an array arr[] of size N, the task is to minimize the length of the given array by repeatedly removing subarrays from the start and end of the array which consists o...
Read More
Arrays
Searching
Competitive Programming
subarray
two-pointer-algorithm
DSA
Remaining array element after repeated removal of the smallest element from pairs with absolute difference of 2 or 0
Given an array arr[] consisting of N positive integers, the task is to check if it is possible to reduce the size of the array to 1 by repeatedly removing the smallest ele...
Read More
Arrays
Misc
Greedy
Sorting
Mathematical
array-rearrange
DSA
Find array elements with rightmost set bit at the position of the rightmost set bit in K
Given an array arr[] consisting of N and an integer K, the task is to print the elements of arr[] whose rightmost set bit is at the same position as the rightmost set bit ...
Read More
Arrays
Bit Magic
Mathematical
Technical Scripter
Bit Algorithms
Technical Scripter 2020
DSA
Highest powers of 2 not exceeding non-repeating array elements
Given an array arr[] of size N, the task is for every non-repeating array element is to find the highest power of 2 that does not exceed that element. Print the powers of ...
Read More
Arrays
Mathematical
Hash
cpp-map
frequency-counting
maths-power
DSA
Python program to find the longest word in a sentence
Given a string S consisting of lowercase English alphabets, the task is to print the longest word present in the given string in python.Examples:Input: S = "be confident a...
Read More
Strings
Sorting
Technical Scripter
Python Programs
python-list
python-string
DSA
Count pairs having distinct sum from a given range
Given two positive integers L and R, the task is to find the number of pairs with elements from the range [L, R], whose sums are distinct.Examples:Input: L = 2, R = 3Outpu...
Read More
Greedy
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Maximum number of pair reductions possible on a given triplet
Given a triplet of integers (A, B, C), the task is to count the maximum number of decrements by 1 that can be performed on positive pairs of the given triplet.Examples:Inp...
Read More
Greedy
Sorting
Mathematical
DSA
Convert given lower triangular Matrix to 1D array
Given a lower triangular matrix M[][] of dimension N * N, the task is to convert it into a one-dimensional array by storing only non-zero elements.Examples:Input: M[][] = ...
Read More
Arrays
Algorithms
Matrix
Technical Scripter
array-rearrange
Technical Scripter 2020
DSA
Count distinct prime triplets up to N such that sum of two primes is equal to the third prime
Given an integer N, the task is to count the number of distinct prime triplets (a, b, c) from the range [1, N] such that a b c ? N and a + b = c.Note: Two prime tuples a...
Read More
Greedy
Mathematical
Technical Scripter
Prime Number
Technical Scripter 2020
DSA
Generate an N-digit number made up of 1 or 2 only which is divisible by 2<sup>N</sup>
Given an integer N, the task is to generate an N-digit number which is comprising only of digits 1 or 2 and is divisible by 2N.Examples:Input: N = 4Output: 2112Explanation...
Read More
Bit Magic
Mathematical
number-digits
divisibility
maths-power
DSA
Count distinct prime factors for each element of an array
Given an array arr[] of size N, the task is to find the count of distinct prime factors of each element of the given array.Examples:Input: arr[] = {6, 9, 12}Output: 2 1 2E...
Read More
Arrays
Mathematical
sieve
prime-factor
Prime Number
DSA
Perimeter of the Union of Two Rectangles
Given two arrays X[] and Y[], each of length 4, where (X[0], Y[0]) and (X[1], Y[1]) represents the bottom left and top right corners of one rectangle and (X[2], Y[2]) and ...
Read More
Arrays
Mathematical
Geometric
square-rectangle
Geometric-Lines
DSA
Program to print ASCII Value of all digits of a given number
Given an integer N, the task is to print the ASCII value of all digits of N.Examples:Input: N = 8Output: 8 (56)Explanation:ASCII value of 8 is 56Input: N = 240Output:2 (50...
Read More
Mathematical
number-digits
School Programming
ASCII
DSA
TCS CodeVita Interview Experience (Off-Campus)
Hello everyone, I am going to share my TCS interview experience which was completely online this year because of the covid-19 pandemic. As you all know TCS is the world's ...
Read More
Interview Experiences
TCS
TCS-interview-experience
Off-Campus
TCS Codevita
Experiences
Xoriant Interview Experience
For the 2021 batch, there were three rounds for Xoriant company. It is a Silicon Valley-based MNC company.First Round: It was a test having sections on aptitude, English, ...
Read More
Interview Experiences
Xoriant
Experiences
1
...
6309
6310
6311
...
11195