This file contains hidden or 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
| /** | |
| * Queue Data Structure implemented as Array | |
| */ | |
| #include <stdio.h> | |
| #define QUEUE_MAX 5 | |
| //declare my queue and two pointers to this data structure | |
| int queue[ QUEUE_MAX ], | |
| front = -1, | |
| rear = -1; |
This file contains hidden or 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
| /** | |
| * Author: Adrian Statescu <mergesortv@gmail.com>,<http://adrianstatescu.com> | |
| * Description: Efficient Data Structure for storing and retrieving data in a Last-In, first-out; | |
| * This allow us to retrieve data in opposite order as it was stored. | |
| */ | |
| #include <stdio.h> | |
| #define STACK_MAX 100 | |
| #define FIN "scarface.in" | |
| struct Stack { |
This file contains hidden or 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
| enabled in php.ini | |
| sudo apt-get install php7.0-curl | |
| sudo /etc/init.d/apache2 restart |
This file contains hidden or 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
| sudo apt-get install exfat-fuse exfat-utils |
This file contains hidden or 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
| dev_appserver.py app.yaml | |
| gcloud app deploy |
This file contains hidden or 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
| find . -name "*.cpp" -ctime -1 |
This file contains hidden or 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
| @n = 3 | |
| @stack = [0]*(@n) | |
| def valid(level) | |
| for i in 1..level-1 | |
| if @stack[i] == @stack[level] |
This file contains hidden or 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 <bits/stdc++.h> | |
| #include <algorithm> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| #define b 1000000 | |
| using namespace std; | |
| typedef vector<int>::iterator I; | |
| typedef void (*fnPtr)(vector<int>, I, I); |
This file contains hidden or 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 <bits/stdc++.h> | |
| #define FIN "algsort.in" | |
| #define FOUT "algsort.out" | |
| #define L 1000000 | |
| using namespace std; | |
| struct IO { | |
| char *buff, *p, *s; |
This file contains hidden or 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
| ghc file.hs --make -threaded -rtsopts |