Set Union Given two sets of integers, print the set containing the union of the two input sets. For example, g... |

Distinct Dishting You are given an array of N integers. Then there will be Q commands of the following type: Change ... |

Naughty Subsequence - V2.0 Mahib loves ‘Naughty Subsequence’-s. He will give you an array of characters ara[0,1,...,n-1] that c... |

So Long As all people know ICPC can be very dull sometimes for people other than contestants. Jodu, Modu, an... |

Protik and Hill Climbing Who doesn't want to save a mother? Like everyone, Protik was finding a way to earn some money (he h... |

Another Query on String You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o... |

Final Days of Goldfinger We see agent Bond once again being called in time of a great need. The vile criminal Auric Goldfinge... |

Primary Key "Clarity-Lon" is the new awesome e-commerce based startup that went to the top of the chart within f... |

Earthquake! Most houses are not as safe as they could be. Earthquake engineering is an interdisciplinary branch ... |

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

Smallest Subarray You are given an array A of N integers A1, A2, A3, ..., AN . If we select two indices (1 ≤ i ≤ j ≤ N... |

Special Pair Mr. X is an “array pagla” person. He loves doing different types of things with arrays. Today Mr. X ... |

Another Update-Query Problem You will be given an array A of length N and you will have to perform Q operations on that array. Th... |

Mario and Princess Peach The world of Mario can be imagined as 2D grid of $N$ rows and $M$ columns--containing a total of $N ... |

Distinctness A substring of string S is another string S' which occurs in string S. For example: S = aaba and one... |

Smart Query Handler Bit operators perform bit-wise operations between two binary numbers. Wikipedia says, binary operati... |

Expandable ListView Minas is working on his new language. He want to add a feature call expandable listview. Here he exp... |

Rio and Inversion One day Rio was returning home from his university and unfortunately lost his phone on the way. He a... |

Subarray Sum You are given an array having N integers. You have to select at most K positions in the array and re... |

Sofdor Ali and Bracket Sequence Sofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey... |

Cut the Rope Fahim is a rope seller. He has a special tool for cutting ropes. But recently this tool is behaving ... |

Battle of Endor After myriad battles and death of million rebel soldiers, it is high time to destroy the imperial ar... |

Array Simulation You are given an array of N elements. Initially all the indices have a value of 0. You have to do fo... |

Maintain the Queue “Ajob Desh” is a strange country. Anyone who wants to buy train tickets need to go to the railway st... |

Subset of Sequences You will be given a set of sequences. Each sequence is a list of numbers. Two sequences are K-simila... |

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

Toph uses cookies. By continuing you agree to our Cookie Policy.