Prefix Tree Problems

 The Punishment of HasinurHasinur studies at X School & College situated in Chittagong. AA Sir is one of the toughest and roug... Moderate 63/116/440 MaxXORYou are given an array A of n integers (A1​, A2​, ..., An​) and some queries. In each query, you wil... Moderate 72/91/239 Jontrona of LiakotLiakot, the king of Cox's Bazar, is currently in a dire situation. His own younger sister Ayesha is ... Moderate 10/11/56 New Year CoupleThe new year 2017 is here. To celebrate the 31st night, Mr Rio has thrown a big party at his house. ... Moderate 22/32/170 Undo HistoryRobin is using a peculiar text editor to write a sequence of lines of text. The editor consists of t... Moderate 27/40/96 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 ... Moderate 52/72/259 Another String Query ProblemThis time I'm going to introduce you to a new land, called String Land. In String Land there are N ... Moderate 20/24/74 Yet another Real Life ProblemAkash is one of the finest programmers of AUST. His closest senior Shuvro asked him if he can solve ... Moderate 35/42/204 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... Moderate 14/22/300 Yet Another XOR Tree ProblemYou are given a tree with N nodes. A non-negative weight is assigned to each edge of the tree. Let’s... Subtree MEXYou will be given a balanced binary tree of N nodes. Each of the nodes of the tree will contain a no... Moderate 13/20/148 XOR Is FunEfa hates numbers. But she loves the XOR operation. This time, you have to solve another problem for... Moderate 7/12/86 Order of DigitsYou will be given a list L consisting of N non-negative integers in a decimal number system. We all ... Moderate 51/65/317