Puzzle of 1's and 0'sThere is a rectangular puzzle board containing N×MN \times MN×Mnumber of places. Each place contains...

Perhaps Strings Are InevitableStrings are inevitable in life. They give meaning to our expressions. Strings come in life in many w...

Permutation QueryAn array of integers p1,p2,....,pnp_1,p_2,....,p_np1,p2,....,pn is called a permutation if it con...

Trina Loves MangoesTrina loves mangoes. And she is a valuable member of the famous Mango Eaters Community. This communi...

Help Dr. WuDr. Wu is going to organize a competition. He has decided to judge the participants using an automat...

Lucky Number SevenPeople often consider the number 777 as lucky. “But why?”  you might ask. Well, consider the fact t...

Matrix ResurrectionWe have a twodimensional matrix consisting of NNN rows and MMM columns. The rows are numbered from ...

XORGunYouKn0wWho has an integer sequence a1,a2,…,ana_1, a_2, \ldots, a_na1,a2,…,an. He will perform the...

Give Me My VectorI am in a hurry. I have nnn 2D vectors. And I have created all possible subsets of these nnn vectors...

Odd QueryA subsequence is a sequence that can be derived from the given sequence by deleting zero or more ele...

Once Upon a Time in DhakaDhaka is one of the mega cities of Bangladesh. At different times, Dhaka was entitled differently by...

Old Wives' GameKadambari wants to test the brains of the new bride Mrinalini. So she proposed the infamous Old Wive...

BiElement SubsequenceYou are participating in a game show. In the final round, the host pulls up a large sequence of posi...

Ator Ali's IncomeAtor Ali loves to make money. He does not care whether his source of income is good or evil. As his ...

Car SelectionAlice and Bob are two friends. They want to buy two cars, one for Alice and one for Bob. That's why ...

The FeastNafia and Shishir like to feed pets. Today, Nafia has mmm chocolates and Shishir has mmm cakes for s...

WaterDhoni has 3 types of water bottles. He has exactly aaa bottles of volume 0.5 liters, bbb bottles of ...

Yet Another Hello WorldThe greatest company, Pied Piper, is developing encryption systems. The company has already built MM...

Collectors ProblemThe Bat club controls Gotham City. They decided to bring equality to the city (Of course, with some ...

Who Doesn't Love Shorter Strings?I hope you are not someone who hates longer strings, or fears longer strings like me. Strings can be...

GoGAlice and Bob are playing GoG. GoG is a twoplayer board game. It consists of a grid with nnn rows a...

And... Yet Another AND ProblemYouKn0wWho has an integer nnn. He wants to find an integer sequence aaa of size exactly 2n2n2n such ...

GPUBusinessYou are a businessman who is fond of Vinia GPU. You buy Vinia GPUs from Byteland and sell them to Bi...

Cheap TouristThe country of Byteland is divided into N provinces numbered from 1 to N. The provinces are connecte...

Crossword Puzzle IIA crossword puzzle consists of an MxN grid with M rows and N columns. Initially, some of the squares...

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