MaxXORYou are given an array A of n integers (A1, A2 , ... , An) and some queries. In each query, you will...

New Year CoupleThe new year 2017 is here. To celebrate the 31st night, Mr Rio has thrown a big party at his house. ...

Undo HistoryRobin is using a peculiar text editor to write a sequence of lines of text. The editor consists of t...

The Punishment of HasinurHasinur studies at X School & College situated in Chittagong. AA Sir is one of the toughest and ...

Yet Another XOR ProblemGiven a rooted tree with N nodes where each node has a value, find a pair of nodes (u, v) so that u ...

Another String Query ProblemThis time I'm going to introduce you to a new land, called String Land. In String Land there are N ...

Yet another Real Life ProblemAkash is one of the finest programmers of AUST. His closest senior Shuvro asked him if he can solve ...

Spam Me NotYour team has been tasked to build a section of a web app where users can choose whether and how the...

Fabby and Her Wedding DressYou all remember Fabby, the princess of Byteland. People of Byteland are waiting for the biggest cel...

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