This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Invertir cadena / Pilas(stack) | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Invierte los caracteres de una cadena usando una pila | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Balanceo de simbolos de Agrupacion | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Verifica si los simbolos de agrupacion de una expresion fue bien ingresada | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Frase Palindroma / Pilas(stack) | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Verifica si la frase es palindroma usando una pila | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Colas con prioridad | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Se encola caracteres de acuerdo a su prioridad(entero) ingresada. | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Colas Dobles | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Inserta y elimina por delante y detras de la cola | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Unir 2 listas circulares simples | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Une un una lista L1 con L2 y muestra la L1 que es la final | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Ordenar numeros en una lista enlazada simple | |
* | |
* Copyright 2014 Martin Cruz Otiniano | |
* | |
* Description: Ordena mediante el criterio de burbuja una lista | |
* | |
* Site: www.marcsdev.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ - Agenda con uso de struct | |
* | |
* Copyright 2014 Martin Cruz Otiniano | |
* | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
using namespace std; | |
int hanoi(int n) | |
{ | |
if(n == 1) | |
return 1; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
using namespace std; | |
int Catalan(int n) | |
{ | |
if (n <= 0) | |
return 1; | |
else |
OlderNewer