Coding Problems
Word Search (DFS)
MediumGiven 2D board and word, find if word exists in the grid (DFS)
Implement binary search to find target in sorted array
Merge k Sorted Lists
HardMerge k sorted linked lists into one sorted linked list
QuickSort Implementation
MediumImplement the QuickSort algorithm to sort an array in ascending order
Seat Reservation System
MediumReserve seats in a row if they are contiguous and available.
Calculate Daily Spending
MediumSum all transactions for each day from a list.
Flag transactions with the same amount and recipient within 10 minutes.
Merge Available Slots
MediumMerge overlapping time slots to show continuous availability.
Find Patients with High BMI
MediumFilter patients with BMI ≥ 30 (Obese). BMI = weight(kg) / height(m)^2.
Calculate the average age of patients from a list.
Detect Spam Messages
MediumFlag messages containing spam keywords (e.g., "buy", "promo", "free").
Sort Posts by Engagement
MediumSort posts by total engagement (likes + comments) in descending order.
Apply Multiple Discounts
MediumApply discounts based on cart total: 10% if total > $100, else 5%.
Movie Booking System
MediumGiven available movies, book a movie and return remaining slots.
Given a list of purchased products, return the top K most frequently bought items.
Recommend Movies by Genre
MediumGiven a dictionary of movies by genre, return movies of a selected genre.
Check Seat Availability
MediumGiven booked seats, check if a seat is available.
Flag transactions above a threshold as suspicious.
Calculate Total Balance
MediumGiven a list of transactions, compute the total balance.
Find Available Appointments
MediumGiven booked slots, find available time slots.