Problem Of The Day

Kth smallest element

Date:31st Oct, 2023

Topic:Algorithms


Previous Problem of the Day

Count BST nodes that lie in a given range

Date:30th Oct, 2023

Topic:Data Structures

Transform to Sum Tree

Date:29th Oct, 2023

Topic:Data Structures

A Simple Fraction

Date:28th Oct, 2023

Topic:Math

First non-repeating character in a stream

Date:27th Oct, 2023

Topic:Algorithms

Quick Sort on Linked List

Date:26th Oct, 2023

Topic:Algorithms

M-Coloring Problem

Date:25th Oct, 2023

Topic:Algorithms

Sum of Middle Elements of two sorted arrays

Date:24th Oct, 2023

Topic:Algorithms

Print Diagonally

Date:23rd Oct, 2023

Topic:Data Structures

Smallest distinct window

Date:22nd Oct, 2023

Topic:Algorithms

Palindromic Array

Date:21st Oct, 2023

Topic:Algorithms

nCr

Date:20th Oct, 2023

Topic:Math

Topological sort

Date:19th Oct, 2023

Topic:Algorithms

Design HashMap

Date:18th Oct, 2023

Topic:Data Structures

Binary Tree to BST

Date:17th Oct, 2023

Topic:Data Structures

Construct Binary Tree from String with bracket representation

Date:16th Oct, 2023

Topic:Data Structures

Minimum Swaps to Sort

Date:15th Oct, 2023

Topic:Algorithms

Expression contains bracket or not

Date:14th Oct, 2023

Topic:Algorithms

Insertion point in Y shaped LL

Date:13th Oct, 2023

Topic:Data Structures

Solve the Sudoku

Date:12th Oct, 2023

Topic:Algorithms

Radix Sort

Date:11th Oct, 2023

Topic:Algorithms

Rotate by 90 degree

Date:10th Oct, 2023

Topic:Data Structures

Print Anagrams Together

Date:9th Oct, 2023

Topic:Algorithms

Overlapping Intervals

Date:8th Oct, 2023

Topic:Data Structures

Sum of subarray ranges

Date:7th Oct, 2023

Topic:Algorithms

Copy Set Bits in Range

Date:6th Oct, 2023

Topic:Bit Manipulation

Knapsack Problem

Date:5th Oct, 2023

Topic:DP

Negative Weighted Cycle

Date:4th Oct, 2023

Topic:Graphs

Distinct palindromic substrings

Date:3rd Oct, 2023

Topic:Heaps & Hashing

Count BST nodes that lie in a given range

Date:2nd Oct, 2023

Topic:Binary Search Trees

Top View of Binary Tree

Date:1st Oct, 2023

Topic:Binary Trees

Maximum length chain of pairs

Date:30th Sep, 2023

Topic:Greedy

Infix to Postfix

Date:29th Sep, 2023

Topic:Stacks & Queues

Reverse a doubly linked list

Date:28th Sep, 2023

Topic:Linked List

Coins & game

Date:27th Sep, 2023

Topic:Backtracking

Count triplets with sum smaller than a given value

Date:26th Sep, 2023

Topic:Searching & Sorting

Find a Common Element in all Rows

Date:25th Sep, 2023

Topic:2D Arrays

Longest Palindromic Substring

Date:24th Sep, 2023

Topic:Strings

Chocolate Distribution Problem

Date:23rd Sep, 2023

Topic:Arrays

Binary Array Sorting

Date:22nd Sep, 2023

Topic:Segment Trees

Bit Difference

Date:21st Sep, 2023

Topic:Bit Manipulation

Assembly Line Scheduling

Date:20th Sep, 2023

Topic:DP

Print unique rows in a given boolean matrix

Date:19th Sep, 2023

Topic:Tries

Vertex Cover

Date:18th Sep, 2023

Topic:Graphs

Merge K Sorted lists

Date:17th Sep, 2023

Topic:Heaps & Hashing

Flatten BST to sorted list

Date:16th Sep, 2023

Topic:Binary Search Trees

ZigZag Tree Traversal

Date:15th Sep, 2023

Topic:Binary Trees

Job Sequencing Problem

Date:14th Sep, 2023

Topic:Greedy

The Celebrity Problem

Date:13th Sep, 2023

Topic:Stacks & Queues

Sort the biotonic doubly linked list

Date:12th Sep, 2023

Topic:Linked List

Crossword-Puzzle

Date:11th Sep, 2023

Topic:Backtracking

Count Inversions

Date:10th Sep, 2023

Topic:Searching & Sorting

Count distinct elements in every window

Date:9th Sep, 2023

Topic:Heaps & Hashing

Transform to Sum Tree

Date:8th Sep, 2023

Topic:Binary Trees

Sort a stack

Date:7th Sep, 2023

Topic:Stacks & Queues

Coins and Game

Date:6th Sep, 2023

Topic:Backtracking

Merge two sorted linked lists

Date:5th Sep, 2023

Topic:Linked List

Count ways to N'th Stair (Order does not matter)

Date:4th Sep, 2023

Topic:DP

Word break

Date:3rd Sep, 2023

Topic:Tries

Bipartite Graph

Date:2nd Sep, 2023

Topic:Graphs

Count distinct elements in every window

Date:1st Sep, 2023

Topic:Heaps & Hashing

Count BST nodes that lie in a given range

Date:31st Aug, 2023

Topic:Binary Search Trees

Determine if Two Trees are Identical

Date:30th Aug, 2023

Topic:Binary Trees

Fractional Knapsack

Date:29th Aug, 2023

Topic:Greedy

Longest valid Parentheses

Date:28th Aug, 2023

Topic:Stacks & Queues

Delete nodes which have a greater value on the right side

Date:27th Aug, 2023

Topic:Linked List

Backtracking Set 2 Rat in a Maze

Date:26th Aug, 2023

Topic:Backtracking

Merge Sorted Arrays using O(1) Space

Date:25th Aug, 2023

Topic:Searching & Sorting

Spiral Matrix

Date:24th Aug, 2023

Topic:2D Arrays

Valid Palindrome

Date:23rd Aug, 2023

Topic:Strings

Next Permutation

Date:22nd Aug, 2023

Topic:Arrays