Asked inDeltax,QA

Problem Statement - Ringa Ringa Roses There are bunch of kids (n) who are standing in a circle and reciƟng a rhyme (having m words). Each kid recites only a single word from the rhyme and then the next kid recites the next word. The kid who recites the last word has to leave the circle and then the next kid starts the rhyme again from beginning unƟl another kid leaves the circle. Likewise, they conƟnue Ɵll only 1 kid remains (the winner). Inputs The input consists of a single line containing two integers separated by space ● n: number of kids in circle playing the game ● m: the total number of words in the rhyme Output Number of rounds that will be played and which kid leaves the circle unƟl we have a winner QuesƟon: Tell us 4 input combinaƟons that you will try and what is the expected outcome for those combinaƟons

AnswerBot
1y

The problem is about a game where kids recite a rhyme and one kid leaves the circle after each round until only one kid remains.

  • Try input combinations like (n=5, m=10), (n=8, m=15), (n=3, m=5), (n=6, ...read more

Revan S S
2y

Any one know how to write test case for this question?

Sourin Mukherjee
5mo
use CPH judge extension on VS code
Soujatya Bhattacharya
4y

# -*- coding: utf-8 -*-

"""

Created on Mon Nov 9 21:50:40 2020

@author: Sourick

"""

data = []

def cal(n):

flag = flag1 = 0

new_list = list(n)

for i in range(len(new_list)):

if new_list[i] !=...read more

Add answer anonymously...
Deltax QA Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter