subject

Discussions My Submissions
Java 8
Curious Shubham (100 Marks)
Draft save
1
2
3
4
There are 26 groups of people in Shubham's Company. At lunchtime, they all want to get some food to eat as soon as possible. All
the groups have made plan to get some food as soon as possible. According to the plan, every person of the group will share the
description of food he/she wants to eat so that all the group members will be able to order the food on the behalf of his/her group.
All the persons stand at various locations in the queue and whoever will get the food first, will distribute the food among all the
group.
But there is a weird procedure of getting the food from a queue. People having even indices form a new queue and process repeats
until only 1 person remains in the queue. He/she will able to order some food of his choice. Shubham and his friends are curious
about the group which will be able to get some food.
Input Format
The first line of input consists of the number of people present in the Queue, N.
The second line of input consists of a string that represents the group of each person who is standing in the queue.
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Constraints
1 The string consists of uppercase letters only.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:00, abbygriffin2009
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
image
Computers and Technology, 23.06.2019 15:00, ryleerose255
Idon’t understand the double8 coding problem. it is java
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, 5theth
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Discussions My Submissions
Java 8
Curious Shubham (100 Marks)
Draft save
1<...

Questions in other subjects:

Konu
Mathematics, 19.03.2021 01:00
Konu
Mathematics, 19.03.2021 01:00
Konu
Mathematics, 19.03.2021 01:00
Konu
History, 19.03.2021 01:00
Konu
Mathematics, 19.03.2021 01:00
Konu
English, 19.03.2021 01:00