Color The GraphYou are given an acyclic, bidirectional graph with NNN nodes and M edges. The nodes are numbered fro...

Police StationsRecently the government of country S is going to construct some police stations(possibly zero) in so...

Hide and SeekYou know how to play hideandseek, right? In a group of kids, one of them is selected to be the see...

Do You Know Tree ?"Stay at least one metre distance from others.” Corona has affected the World as well as Bangla...

Race in DomKiThere is a kingdom called DomKi. DomKi has N city and N1 twoway road. Each city is numbered with 1...

XOR TreeYou are given a tree with NNN vertices. A tree is a connected undirected graph without cycles. The t...

2Sat, Adhoc, ApolloneasTheorem, Backtracking, BFS, Bignum, BinarySearch, BipartiteMatching, Bitmask, BruteForce, ChineseRemainderTheorem, Combinatorics, ConvexHull, CutVertex, DataStructure, DFS, DigitDP, DisjointSets, DivideAndConquer, DP, Eertree, EulerTour, ExpectedValue, FenwickTree, FFT, Flow, Game, GCD, Geometry, Graph, Greedy, Hashing, HeavyLightDecomposition, Implementation, InclusionExclusion, Interactive, KnuthMorrisPratt, LowestCommonAncestor, Math, Matrix, MatrixExponentiation, MergeSortTree, ModularExponentiation, MOSAlgorithm, MST, NTT, NumberTheory, Parsing, PersistentLiChaoTree, PersistentSegmentTree, PollardRho, PriorityQueue, Probability, Queue, RabinMiller, RangeOrderStatistics, Scheduling, SegmentTree, ShortestPath, Simulation, Sorting, SparseTable, SpragueGrundyTheorem, SqrtDecomposition, Stack, String, StronglyConnectedComponents, SuffixStructure, TernarySearch, Tree, Trie, TwoPointer, WaveletTree