java

[Solved] Pranav and Change with Java

[Solved] Pranav and Change with Java

Pranav, an enthusiastic kid visited the “Fun Fair 2017” along with his family. His father wanted him to purchase entry tickets from the counter for his family members. Being a little kid, he is just learning to understand about units…

[Solved] WonderWorks Magic Show with Java

[Solved] WonderWorks Magic Show with Java

WonderWorks Magic Show: The Magic Castle, the home of the Academy of Magical Arts at California has organized the great ‘WonderWorks Magic Show’. 3 renowned magicians were invited to mystify and thrill the crowd with their world’s spectacular magic tricks.…

[Solved] Pairing the brackets Contest Problem

[Solved] Pairing the brackets Contest Problem

We are given bracket sequence(may not be balanced). Every character of the sequence is either ‘(‘ or ‘)’.  For each closing bracket, we need to find an opening bracket which is farthest from it (and on left of it) and pair those two brackets.Once…