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
#include<iostream> | |
using namespace std; | |
int fibo(int n) | |
{ | |
if(n == 0 || n == 1) | |
return n; | |
else | |
return fibo(n - 2) + fibo(n - 1); | |
} |
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++ - Algoritmo de Boyer Moore Horspool | |
* | |
* 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 Ackerman(int m, int n) | |
{ | |
if(m==0) | |
return n+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 |
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
/* | |
* 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
/* | |
* 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; |
OlderNewer