HackerEarth's basic programming solutions( Palindromic String, Find Product, Cost of balloons ) :
Problem 4: Palindromic String
Solution: (in c++)
( please guys before moving to the solution try it yourself at least 3-4 times , if you really wanna become a good coder)
Here rbegin() and rend() are string methods.
Problem 5: Find Product
Solution: (in c++)
( please guys before moving to the solution try it yourself at least 3-4 times , if you really wanna become a good coder)
In the same way , you can also do it using arrays.
Problem 6: Cost of balloons
Solution: (in c++)
( please guys before moving to the solution try it yourself at least 3-4 times , if you really wanna become a good coder)
price1 will calculate the price in case if green colored balloon is given to the first question solver and purple colored balloon to those who have solved the second question.
price2 will calculate the price in case if purple colored balloon is given to the first question solver and green colored balloon to those who have solved the second question.
Now we have to output , which price is minimum price1 or price2.
Guys , if you have any queries related to a question or need more explanation, comment down below!
can u please upload solution of HackerEarth Questions in Python language.
ReplyDeleteSoon buddy!!! I will upload the solutions in both java and python.
Deletewhen
Delete