HackerRank C++ Algorithms: Bill Division solution (Implementation)

preview_player
Показать описание
HackerRank C++ solution for the Algorithms Implementation coding challenge called Bill Division, previously known as Bon Appétit. Here, we are looping through a dynamic vector, which is a vector of integers passed by reference to a void function, and then we perform calculations to print the correct strings.

Рекомендации по теме
Комментарии
Автор

hey, i tried to solve the problem by using a different approach. In the for loop i used a continue statement for whenever i encountered the price of the item that is not to be paid by anna
the method seemed to work for all the testcases except for the last two, can you tell me what's wrong with this approach

utkarshverma
visit shbcf.ru