Find Jobs
Hire Freelancers

Palindrome

$10-30 USD

Terminado
Publicado hace alrededor de 6 años

$10-30 USD

Pagado a la entrega
This lab will give you a practice with both queue and stack ADTs. In this work, you are to determine if an input string is a palindrome. A string of characters is a palindrome if and only if it reads the same forward and backward. Examples: eye, abba, civic, radar, and so [login to view URL] are different algorithms to determine if a string is [login to view URL] work in this lab uses Stack and Queue ADTs. Here is an approach:•Read the input string one character at a time.•Push a copy of a character on to the stack. Add the same character to (the back of the) queue.•When the line has been entirely read, the program repeatedlycompares the top of element of thestack and the front element of the queue; in case of a match, it pops the stack and (simultaneously) de-queues the queue.•If ever there is a mismatch between the top element of the stack and the front element of the queue, the program declares that the input string is not a palindrome, and halts. The program also reports a position where a different text found.•If the stack (or equally correctly, the queue) gets empty, the program declares that the given string is a palindrome, and stops.
ID del proyecto: 16556254

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
$15 USD en 1 día
5,0 (1 comentario)
0,4
0,4
6 freelancers están ofertando un promedio de $54 USD por este trabajo
Avatar del usuario
we have deal alredy.
$20 USD en 1 día
5,0 (2 comentarios)
1,7
1,7
Avatar del usuario
A proposal has not yet been provided
$13 USD en 1 día
5,0 (1 comentario)
0,4
0,4
Avatar del usuario
I've been doing algorithms all through my life and this one should be straightforward. Do let me know if you need help on this one.
$25 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
sacramento, United States
4,9
7
Forma de pago verificada
Miembro desde nov 16, 2017

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos 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)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.