Problem Statement: Given a partially filled 9×9 2D array ‘board[9][9]’, the goal is to assign digits (from 1 to 9) […]
Problem Statement: Given a weighted graph, find the shortest path between any two vertices of a graph. Code: Adjacency Matrix […]
Problem Statement: TCS is working on a new project called “Testvita“. There are N modules in the project. Each module […]
Problem Statement: Given a string path, which is an absolute path (starting with a slash ‘/’) to a file or directory in a Unix-style […]
Problem Statement: Given a number N, let CP(N) denote the number of primes between 1 and N (inclusive of N). […]
Problem Statement: Given an undirected Graph, write an algorithm that returns True if the graph contains a cycle, otherwise False. […]
There is a new alien language that uses the English alphabet. However, the order among the letters is unknown to […]
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] […]
Problem Statment: Topological Sort of a directed graph (a graph with unidirectional edges) is a linear ordering of its vertices such […]
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] […]