Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Misc
7.8K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Tree
909+ articles
Matrix
743+ articles
Stack
261+ articles
factor
92+ articles
cpp-stack
79+ articles
Sudo Placement
15 posts
Recent Articles
Popular Articles
Sudo Placement[1.7] | Greatest Digital Root
Last Updated: 11 July 2025
Given a number N, you need to find a divisor of N such that the Digital Root of that divisor is the greatest among all other divisors of N. If more than one divisors give ...
read more
Misc
Mathematical
DSA
number-digits
math
factor
Sudo Placement
Sudo Placement[1.5] | Wolfish
Last Updated: 11 July 2025
Given a N x N matrix where value at cell (i, j) is the cost of moving from a cell (i, j) to cell (i - 1, j - 1), (i - 1, j) or (i, j - 1). Your task is to find the maximum...
read more
Misc
Dynamic Programming
Matrix
DSA
Sudo Placement
Sudo Placement[1.5] | Partition
Last Updated: 03 May 2023
Given an array of positive and negative numbers. The task is to find a partition point such that none of the elements of left array are in the right array. If there are mu...
read more
Misc
Hash
DSA
Arrays
prefix-sum
Sudo Placement
Sudo Placement[1.5] | Second Smallest in Range
Last Updated: 11 July 2025
Given an array of N integers and Q queries. Every query consists of L and R. The task is to print the second smallest element in range L-R. Print -1 if no second smallest ...
read more
Misc
DSA
Arrays
array-range-queries
Sudo Placement
Sudo Placement[1.4] | BST Traversal
Last Updated: 11 July 2025
Given N elements to be inserted into Binary Search Tree. The task is to construct a binary search tree with only insert operation and finally print the elements in the pos...
read more
Misc
Tree
DSA
PostOrder Traversal
BST
Sudo Placement
Sudo Placement[1.4] | K Sum
Last Updated: 11 July 2025
Given head of a linked list of integers and an integer k, your task is to modify the linked list as follows:Consider nodes in groups of size k. In every group, replace val...
read more
DSA
Linked Lists
Traversal
Sudo Placement
Sudo Placement[1.4] | Jumping the Subtree
Last Updated: 29 August 2022
Given a binary search tree of n nodes with distinct values. Also given are Q queries. Each query consists of a node value that has to be searched in the BST and skip the s...
read more
Misc
Tree
DSA
Preorder Traversal
Data Structures-Hash
Hash
cpp-unordered_map
Sudo Placement
Sudo Placement[1.3] | Stack Design
Last Updated: 11 July 2025
Given q number of queries, you need to perform operations on the stack. Queries are of three types 1, 2, and 3. If the operation is to push (1) then push the elements, if ...
read more
Misc
Stack
DSA
cpp-stack
Sudo Placement
Sudo Placement[1.3] | Final Destination
Last Updated: 11 July 2025
Given an array of integers and a number K with initial and final values. Your task is to find the minimum number of steps required to get final value starting from the ini...
read more
Misc
Queue
DSA
placement preparation
BFS
Greedy Algorithms
Permutation and Combination
cpp-queue
Sudo Placement
Sudo Placement[1.3] | Playing with Stacks
Last Updated: 17 January 2023
You are given 3 stacks, A(Input Stack), B(Auxiliary Stack) and C(Output Stack). Initially stack A contains numbers from 1 to N, you need to transfer all the numbers from s...
read more
Misc
Stack
DSA
Algorithms-Greedy Algorithms
cpp-stack
Sudo Placement
Sudo Placement 2 | Matrix Series
Last Updated: 11 July 2025
A Matrix series is defined as follows:M, MT, M(MT), M(MT)2, M2(MT)3, M3(MT)5, M5(MT)8. . . . . . . ., where M is a binary square matrix of sizeK x K(Binary Matrix is a spe...
read more
Misc
Matrix
Placements
DSA
Fibonacci
Modular Arithmetic
Sudo Placement
Sudo Placement | Placement Tour
Last Updated: 11 July 2025
Given an array A of N positive integers and a budget B. Your task is to decide the maximum number of elements to be picked from the array such that the cumulative cost of ...
read more
DSA
Sorting Quiz
Arrays
Sudo Placement
Sudo Placement | Range Queries
Last Updated: 11 July 2025
Given Q queries, with each query consisting of two integers L and R, the task is to find the total numbers between L and R (Both inclusive), having almost three set bits i...
read more
Bit Magic
Divide and Conquer
DSA
Binary Search
Sudo Placement
Sudo Placement | Palindrome Family
Last Updated: 07 December 2022
Given a string of lowercase characters, the task is to detect the family of string, where family of string is described as follows.ODD Palindrome : String with characters ...
read more
Misc
Strings
DSA
palindrome
Sudo Placement
Sudo Placement | Special Subsequences
Last Updated: 11 July 2025
Given a non-empty string S containing only lowercase letters, print all ‘Special Subsequences’ of S. For Instance, “ab” has the following Special Subsequences-: { “A”, “AB...
read more
Strings
DSA
subsequence
Algorithms-Recursion
Sudo Placement
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !