You have five pieces of chain, each consisting of three links. You want to make one long chain of these five pieces. Breaking open a link costs 1 Rs, and welding an open link costs 3 Rs.
Is it possible to make one long chain of the five pieces, if you have just 15 Rs?
Solution:

Let us name the chains as 1, 2, 3, 4, 5 each having three links.
Take chain 1 and break open all three links: 1×3=3 Rs.
Take one open link to connect chain 2 and 3: 3 Rs.
Take another open link to connect chain 3 and 4: 3 Rs
Take third open link to connect chain 4 and 5: 3 Rs.
Now you have one long chain ready in only 12 Rs
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!