Find the winner in the Game

已完成 已发布的 5 年前 货到付款
已完成 货到付款

Consider the following children's game:

• ’n’ children stand around a circle.

• Starting with a given child and working clockwise, each child gets a

sequential number, which we will refer to as the child’s ‘id’

• Then starting with the first child, they count from 1 until ‘k’, where ‘k’ is

determined at the start of the game. The child who counts ‘k’ is now out and

leaves the circle. The count starts again with the child immediately next to the

eliminated one.

• Children are so removed from the circle one by one. The winner is the child

left standing last

Write a program which is memory and time efficient to find the winner, for a given n and k

C++编程 Java 软件构架 软件开发 软件测试

项目ID: #18193971

关于项目

5个方案 远程项目 活跃的5 年前

授予:

dobreiiita

Hello I am Java expert and interested in this project. I am familiar with this problem commonly known as Josephus problem and can help you with this project. Please communicate to discuss further. Regards Anshu

$30 AUD 在1天内
(546条评论)
7.6

有5名威客正在参与此工作的竞标,均价$54/小时

AdeelAslam4

Hi there, I can help you out with the task. When is the deadline ? Also, you need it in c++, right? Thanks, Adeel

$30AUD 在1天里
(15条评论)
6.8
Mickelson

Hi Nice to meet you. I'm python expert and my last project on freelancer.com is also python scraping task. My past works: Youtube comment scrapping Real estate property list to csv Job-site content to csv And sc 更多

$40AUD 在1天里
(111条评论)
6.8
iridescent2x15

Hy I am an engineer and have delivered many programming projects. You can share more details about your project. Thank you

$150 AUD 在6天内
(83条评论)
6.2
anirudhka

I can solve this problem using dynamic programming with give to you within 12 hours in C++ with proper commented code.

$20AUD 在1天里
(0条评论)
0.0