Given three positive integers, L, R, K and an array arr[] consisting of N positive integers, the task is to count the number of ways… Read More

# Tag Archives: Amazon-Question

Given a string S and an integer K, the task is to generate lexicographically the largest string possible from the given string, by removing characters… Read More

Given a binary string str, the task is to find the minimum number of characters required to be flipped to make all 1s in right… Read More

Given an array of strings Q[], consisting of queries of the following types: “WRITE X”: Write a character X into the document. “UNDO”: Erases the… Read More

Given an array of intervals arr[] of size N, the task is to find the Kth smallest element among all the elements within the intervals… Read More

Given a matrix bricks[][] denoting the start and end coordinates of a brick’s breadth from an arrangement of rectangular bricks in a two-dimensional space. A… Read More

Given two arrays A[] and B[], the task is to find the maximum number of uncrossed lines between the elements of the two given arrays.… Read More

Given two positive integer L and R, the task is to count the total number of set bits in the binary representation of all the… Read More

Given two unsorted Linked List, the task is to merge them to get a sorted singly linked list.Examples: Input: List 1 = 3 -> 1… Read More

Round 1:(Written) Print boundary of a tree https://www.geeksforgeeks.org/boundary-traversal-of-binary-tree/ Re arrange positive and negative numbers in odd and even positions .Also maintain the order Round 2:… Read More

Round 1: Online test You have M identical ropes and N identical weights. You want to do an experiment to determine the strength S of the… Read More

Given a starting position ‘k’ and two jump sizes ‘d1’ and ‘d2’, our task is to find the minimum number of jumps needed to reach… Read More

Given a binary tree and two nodes of that binary tree. Find the sum of all nodes with odd values in the path connecting the… Read More

Round 1: Coding round + MCQs There were 2 coding questions and 20 mcqs of variable marks such as 4, 6 and 2 and no… Read More

Given a decimal number m, convert it into a binary string and apply n iterations, in each iteration 0 becomes “01” and 1 becomes “10”.… Read More