Find Jobs
Hire Freelancers

Modified Towers of Hanoi -- 2

₹600-1500 INR

Fechado
Publicado há aproximadamente 9 anos

₹600-1500 INR

Pago na entrega
This is the Towers of Hanoi program with the following modifications: 1) There are five pegs, namely 1,2,3,4, and 5. 2) In the initial configuration peg 1 has all the disks. Disks are numbered from 1 (the smallest) to n (the largest), and the goal is to move all the disks to peg 5 obeying the rules of the game: perform one disk move at a time, and never place a larger disk on a smaller disk. Write a program that solves the above problem. You are required to use stacks on each peg to store the disks on that peg. So a move from peg i to peg j will require a pop on the stack for peg i and a push on the stack for peg j. After your function executes, pop all the elements off of peg 5, output the disk numbers to show that your function has performed correctly. Your function must also count the number of disk moves, and after all the disks are moved, it must output the total number of disk moves performed. We will test your program with various values of n including the following: • n=16, • n=32.
ID do Projeto: 7166445

Sobre o projeto

7 propostas
Projeto remoto
Ativo há 9 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
7 freelancers estão ofertando em média ₹1.300 INR for esse trabalho
Avatar do Usuário
A proposal has not yet been provided
₹1.200 INR em 0 dia
5,0 (1 avaliação)
2,4
2,4
Avatar do Usuário
Предложение еще не подано
₹1.500 INR em 1 dia
5,0 (3 avaliações)
1,2
1,2
Avatar do Usuário
I can deliver good quality code in best time possible. I can guarantee that once u get it done by me, next time u would return to me. I know I am new here but u will see I am no new to programming. Done with enough marketing of myself, Rest is of course your choice :)
₹1.350 INR em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi, I have expirience in C++ and making algorithms for Hanoi Towers, that would not be a problem to make. I ready to start and finnish the job.
₹1.300 INR em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I have a lot of free time, and these days i work with c++ on a daily basis, so I can go right to the task and get the job done, I come from c programming so i'm good with algorithms. This is the first time on this site and that's why I don't have much reputation - but I do have experience.
₹1.250 INR em 2 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
A proposal has not yet been provided
₹1.300 INR em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) INDIA
India
0,0
0
Membro desde jul. 31, 2014

Verificação do Cliente

Outros trabalhos deste cliente

Modified Towers of Hanoi
₹600-1500 INR
Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.