Browsing Category

Coding Problems

112 posts

Graph Coloring Problem

Problem Statement Graph colouring problem involves assigning colours to certain elements of a graph subject to certain restrictions…

XOR of Two Numbers

Problem Statement Given 2 numbers, find their bitwise XOR, without using the bitwise XOR operator. Sample Test Cases…

Edit Distance Problem

Problem Statement Given two strings A and B, find the minimum number of steps required to convert A…

Permutation Of String

Problem Statement Given a string S. The task is to print all the possible permutations of the given…

Merge Intervals (With Solution)

Problem Statement Given N intervals, where each interval denotes startTime and endTime. The task is to merge all…

Strassen’s Matrix Multiplication

Problem Statement Why Strassen’s matrix algorithm is better than normal matrix multiplication and How to multiply two matrices…

Delete Node in a Linked List

Problem Statement Given the linked list. The task is to delete the node of the linked list and…

N-ary Tree – Tree Data Structures

Introduction N-ary trees are tree data structures that allow us to have up to n children nodes for…

Josephus Problem

Problem Statement There are N people standing in a circle numbered from 1 to N. Also given an…

Happy Number

Problem Statement Given an integer N. The task is to determine if N is a Happy Number. A …