Modify a tree to get edge weights less than vertex's valuesSo, this question goes like this: Given a weighted tree with values assigned to each node, you ar...
XOR of permutation of stringsThis is a competitive programming question I came across, but couldn't solve. The question gives ...
Modifying array to get equal frequency of each element!@Grime Thanks! The question does not disallow adding another number as long as it is <=26. It states...
Modifying array to get equal frequency of each element!@helios Thanks for all the help till now. I had a doubt here. You say that if N is not divisible by...
Modifying array to get equal frequency of each element!@helios No I don't just have to remove duplicates. If there are multiple occurrences of an element t...