Practice Questions

12 questions across all subjects. Filter and practice.

12 question(s) found

QuestionSubjectDifficultyTypeActions
Reverse a linked list
Reverse a singly linked list (iterative and recursive approaches).
KPMG
DSAEasyCoding
Reverse a string and check palindrome
Reverse a string and check whether it is a palindrome.
Cubastion
DSAEasyCoding
Right view of a binary tree
Given a binary tree, return the right view (rightmost node at each level).
Vehant
DSAEasyCoding
GCD-based problem
Given an array of integers, count the number of pairs (i, j) such that the GCD of arr[i] and arr[j] equals a given value.
Vehant
DSAEasyCoding
SQL MCQs
Multiple choice questions on SQL (joins, aggregation, constraints, window functions).
Blue Yonder
DBMSEasyMCQ
C++ output prediction
Predict the output of given C++ code snippets (operator precedence, pre/post increment, static variables, scope, integer overflow, pass by value vs reference).
Vehant
DSAEasyOutput
Python coding
Write Python code to solve the given data manipulation task (lists, dictionaries, comprehensions, file handling).
Navikenz
GenAI / MLEasyCoding
Sliding Window Maximum (window size k)
Given an array of integers and a window size k, find the maximum value in each sliding window of size k.
Blue YonderGreyB
DSAMediumCoding
Trailing zeros in a factorial and bit rotation
Find the number of trailing zeros in n! and perform a bit rotation on an integer.
Cubastion
DSAMediumCoding
SQL with data engineering basics
Write SQL queries that combine raw data with data engineering basics (e.g., join raw tables to reconcile a reported metric).
Navikenz
DBMSMediumCoding
Take-home task: rebuild a finance metric from raw data using joins
Reconcile a reported finance metric from raw data using joins. Write a short note explaining the approach and assumptions with the query.
Xeno
DBMSMediumAssignment
Counting point pairs
Count the number of pairs of points that satisfy a given condition (as reported by students in the feedback sheet).
Vehant
DSAMediumCoding