Skip to content

Category Archives: Algorithms

Today’s world is highly reliable on data and their appropriate management through widely used apps and software. The backbone for appropriate management of data is… Read More
Given a string S on which you need to perform Q replace operations.Each replacement operation has 3 parameters: a starting index i, a source word… Read More
Consider the set of irreducible fractions A = {n/d | n≤d and d ≤ 10000 and gcd(n, d) = 1}. You are given a member… Read More
Given 2d integer array arr[][] containing N coordinates each of type {X, Y}, the task is to find the minimum number of straight lines required… Read More
Given a string str consisting of N letters, the task is to find the total number of strings that can be generated by replacing each… Read More
Given an array arr[], consisting of N integers, the task is to find the minimum number of moves required to make all numbers in the… Read More
I got a call from an Amazon recruiter. She sent me the coding test link which I had to complete within a week. The given… Read More
There are many ways for checking whether the array contains any specific value or not, one of them is: Examples: Input: arr[] = {10, 30,… Read More
Given an array A[] of length N, the task is to count the number of subarrays of A[] that contain the length of that subarray.… Read More
Given an array arr[] of size N and an integer K, the task is to find the count of all the ordered pairs (i, j)… Read More
Given a string S of size N, having lowercase alphabets, the task is to find the lexicographically minimum string after moving a subsequence to the… Read More
Given an array arr[] of size N and integers L and R defining the given range, the task is to find the number of elements… Read More
I applied for the Uber SDE 1 role by taking a referral. ROUND 1 (CODING ROUND): Problem 1: Base 2 to Base 6 conversion https://www.geeksforgeeks.org/convert-a-number-from-base-2-to-base-6/… Read More
Circularly sorted arrays are arrays that are sorted in ascending or descending order and then rotated by a number of steps. Let us take an… Read More
Given an array (arr[]) of N integers, find a subsequence of 4 elements such that a[i] < a[j] < a[k] < a[l] and i <… Read More

Start Your Coding Journey Now!