kumar
BAN USER- 0of 0 votes
AnswersConsider a game similar to tennis. The game can be palyed by 'N' number of players. The player has to win atleast 'M' games to win a set.
- kumar in United States
Print all the possible combination of winning set for all the payers.
Where
2 <= N
1 <= M
For Example if [A, B] are the players and
if M = 2 The player has to win atleast '2' games to win a set.
The output will be
A A
A B A
B A A
B B
B A B
A B B
if M = 3 The player has to win atleast '3' games to win a set.
The output will be
A A A
A B A A
A A B A
B A A A
B B B
B A B B
B B A B
A B B B
Write an algorithm to print all the possible combination of winning set for all the payers| Report Duplicate | Flag | PURGE
Oracle Software Developer - 1of 1 vote
Answers/*
- kumar in United States for Advertisement
* Please come up with Class and Data Structure Design for a "metric" system to determine the top song of a
* band. Two Web Service calls
*
* void play(String bandname, String songname);
* String topSong(String bandname);
*/
// play("Lady Gaga", "Pokerface");
// play("Lady Gaga", "Pokerface");
// play("Lady Gaga", "Alejandro");
// play("Bruno Mars", "Treasure");
// topSong("Lady Gaga") -> "Pokerface"| Report Duplicate | Flag | PURGE
Amazon SDET - 0of 0 votes
AnswersFind the given doubly linked list is palindrome or not.
- kumar in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Linked Lists - 1of 1 vote
AnswersInput argument of a method is a list of char array. The method have to print all the possible combination of input char(s)...For example if the input argument has ['A','B','C','D'] the output should be A,B,C,AB,AC,AD,BC,BD,CD,ABC,ACD,BCD,ABCD
- kumar in United States| Report Duplicate | Flag | PURGE
Amazon Senior Software Development Engineer Algorithm