Reto programación #2 [Cualquier lenguaje]

Iniciado por fermino, Octubre 01, 2014, 10:41:40 PM

Tema anterior - Siguiente tema

0 Miembros y 2 Visitantes están viendo este tema.

Octubre 01, 2014, 10:41:40 PM Ultima modificación: Octubre 20, 2014, 12:10:46 AM por fermino
Continuando con el tema de los arrays, les dejo otro reto...



CitarTenemos un array con una serie de nombres (Cantidad no determinada); el programa, debe tomar todos esos valores y ordenarlos alfabéticamente de forma ascendente, para luego mostrarlos en pantalla.


Array a testear:

array('Alejandro', 'Alejo', 'Margarita', 'Pedro', 'Pablo', 'Julio', 'Alex' [, ...]);

Reglas:


  • NO utilizar las funciones prefabricadas del lenguaje (Específicas para el objetivo, como en Python, sort()).
  • Enviarme la solución por mensaje privado.


Ganadores:


  • 8-Matrix-8
  • hdbreaker (Pequeño problema a solucionar)
  • arthusu
  • Once
  • HomeGuard

Saludos!
-FerminO-
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Cuando dices "NO utilizar las funciones prefabricadas del lenguaje." te refieres a TODAS las funciones del lenguaje? Osea que sólo podemos básicamente condicionales y bucles?

Saludos!







You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

Octubre 01, 2014, 11:03:52 PM #2 Ultima modificación: Octubre 01, 2014, 11:13:45 PM por Snifer
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Cuando dices "NO utilizar las funciones prefabricadas del lenguaje." te refieres a TODAS las funciones del lenguaje? Osea que sólo podemos básicamente condicionales y bucles?

Saludos!

A qué otras funciones te refieres? (Yo hablo de sort() y cosas por el estilo)...

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Cuando dices "NO utilizar las funciones prefabricadas del lenguaje." te refieres a TODAS las funciones del lenguaje? Osea que sólo podemos básicamente condicionales y bucles?

Saludos!

A qué otras funciones te refieres? (Yo hablo de sort() y cosas por el estilo)...

Si te refieres a cosas como raw_input(), encontrarás un escorpión en tu cama C:
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Octubre 01, 2014, 11:10:56 PM #3 Ultima modificación: Octubre 01, 2014, 11:15:12 PM por fermino
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Cuando dices "NO utilizar las funciones prefabricadas del lenguaje." te refieres a TODAS las funciones del lenguaje? Osea que sólo podemos básicamente condicionales y bucles?

Saludos!

A qué otras funciones te refieres? (Yo hablo de sort() y cosas por el estilo)...

Me refiero a funciones que por ejemplo conviertan tipos, por ejemplo de entero a string o funciones para concatenar listas o para sacar la longitud de un lista...

Saludos!







You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Cuando dices "NO utilizar las funciones prefabricadas del lenguaje." te refieres a TODAS las funciones del lenguaje? Osea que sólo podemos básicamente condicionales y bucles?

Saludos!

A qué otras funciones te refieres? (Yo hablo de sort() y cosas por el estilo)...

Me refiero a funciones que por ejemplo conviertan tipos, por ejemplo de entero a string o funciones para concatenar listas o para sacar la longitud de un lista...

Saludos!

Esas sí pueden usarse (Grax por la aclaración, ahí coregí el post)...
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Solucion enviada!

Entonces él dijo, "cruzad con vuestras tropas y atacad porque es lo único que le queda a nuestro pueblo...".


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Solucion enviada!

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Enviado!

Salute.


Felicitaciones a ambos!

Saludos!
-FerminO-
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

Felicitaciones arthusu!

Nadie más se anima? o.0
Visita mi blog: You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Nadie más se anima? o.0

Piensas publicar los códigos?, sería genial verlos

Saludos!







You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login