Data structures & Algorithms Question no. 1 There are five friends playing a game “guess the…
Data structures & Algorithms
Question no. 1
There are five friends playing a game “guess the meaning” .They are sitting in a circle. Each time one friend ask the question and other four friends have to answer and get 10 points for correct answer. This starts from Friend 1, 2,3, 4& 5.After completion of one cycle its again starts from Friend1,this happens five times(Each friend ask question 5 times).Those who get more points will be the winner
- Which Data structure would you consider and why?
- Implement the above scenario in C++
- now one more friend is added at the end. What changes would you consider in your code?