## Sudoku Solver

Problem Statement: Given a partially filled 9×9 2D array ‘board[9][9]’, the goal is to assign digits (from 1 to 9) […]

## Dijkstra’s Algorithm – Single Source Shortest Path

Problem Statement: Given a weighted graph, find the shortest path between any two vertices of a graph. Code: Adjacency Matrix […]

## Testvita – Codevita 2019 – Round 2

Problem Statement: TCS is working on a new project called “Testvita“. There are N modules in the project. Each module […]

## Simplify Path

Problem Statement: Given a string path, which is an absolute path (starting with a slash ‘/’) to a file or directory in a Unix-style […]

## Prime Counters – TCS Codevita 2017 – Round 2

Problem Statement: Given a number N, let CP(N) denote the number of primes between 1 and N (inclusive of N). […]

## Detect Cycle in an Undirected Graph Using DFS

Problem Statement: Given an undirected Graph, write an algorithm that returns True if the graph contains a cycle, otherwise False. […]

## Alien Dictionary (Hard)

There is a new alien language that uses the English alphabet. However, the order among the letters is unknown to […]

## Course Schedule I: LeetCode

Problem Statement: There are a total of numCourses courses you have to take, labeled from 0 to numCourses – 1. You are given an array prerequisites where prerequisites[i] […]

## Topological Ordering

Problem Statment: Topological Sort of a directed graph (a graph with unidirectional edges) is a linear ordering of its vertices such […]

## Bus Routes: LeetCode

Problem Statement: You are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever. For example, if routes[0] […]