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
/* | |
* 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> | |
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
#include <stdlib.h> | |
#include <time.h> | |
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int num, c; | |
srand(time(NULL)); | |
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++ - Arboles Binaros de busqueda -Recorridos por amplitud | |
* | |
* Copyright 2014 Martin Cruz Otiniano | |
* | |
* Description: Recorrdos por Orden, Pre-Orden y Post-Orden | |
* | |
* 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++ - Constraseña mostrando asteriscos | |
* | |
* Copyright 2014 Martin Cruz Otiniano | |
* | |
* Description: Al teclear por consola en lugar de mostrar los caracteres | |
* mostrara asteriscos, como en cualquier login de cuentas. | |
* | |
* 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++ - Listas Enlazadas simples en c++ | |
* Copyright 2014 Martin Cruz Otiniano | |
* | |
* Description: Inserta, elimina, busca, reporta | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> |
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/Queue | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description : Encola elemento, Desesencola elemento, Mostrar cola, Vaciar cola | |
* Site : www.marcsdev.com | |
*/ | |
#include <iostream> | |
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++ - Pilas/Stack | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description : Apila elemento, Desempila elemento, Mostrar pila, Destruir Pila | |
* Site : www.marcsdev.com | |
*/ | |
#include <iostream> | |
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++ - Autómata Finito Determinista | |
* Copyright 2014 Martin Cruz Otiniano | |
* Description: Ingresa automata, verifica palabra | |
* Site: www.marcsdev.com | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> |