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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| int SequentialSearch(int vec[], int sought); | |
| #define VECTORSIZE 10 | |
| int main() | |
| { |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| #define VECTORSIZE 10 | |
| void quicksort(int vet[], int p, int u); | |
| int partition(int vet[], int p, int u); | |
| void swap(int vet[], int i, int j); |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <time.h> | |
| void BubbleSort(int vec[]); | |
| #define VECTORSIZE 10 | |
| int main() | |
| { |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define VECTORSIZE 10 | |
| //Typedef definition | |
| typedef struct HashList | |
| { int id; | |
| char student[50]; |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #define VECTORSIZE 10 | |
| //Typedef definition | |
| typedef struct HashList | |
| { | |
| int key; |
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 <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define MAX_LEN 20 | |
| char filename[MAX_LEN] = "musicalbum_v0.csv"; | |
| FILE *file; | |
| // Prototypes: | |
| int menu(); |
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
| File | Description | |
|---|---|---|
| __init__.py | This is blank Python script that due to it s special name is treated as a package | |
| admin.py | A fantastic machinery Django dashboard for admin interface | |
| apps.py | Here you can place app special configurations | |
| models.py | Here you store the application's data models | |
| views.py | This is where you have functions that handle requests and return responses | |
| tests.py | Here you can store test functions to test your code | |
| Migrations Folder | This dir stores database specific information as it relates to the models |
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
| Django Terminologies | Description | |
|---|---|---|
| Django Project | Is a collection of apps and configs when combined together will make up the full web app (your complete website) | |
| Django Application | Is created to perform a particular functionality as a registration app a polling app comments app etc. |
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
| File | Description | |
|---|---|---|
| __init__.py | This is a blank Python script that due to its special name it will be treated as a package | |
| asgi.py | At a very high-level ASGI is a communication interface between apps and servers | |
| settings.py | This is where you will store all your project settings | |
| urls.py | This is a Python script that will store all the URL patterns for your project. Meaning diff pages of your web app :) | |
| wsgi.py | This is a Python script that acts as the Web Server Gateway Interface. It ll help us to deploy our app to production | |
| manage.py | This is a Python script that is associated with many commands as we build our web app! |
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
| def prog_fibo_2(n): | |
| a = 1 | |
| b = 1 | |
| for i in range(n): | |
| yield a | |
| a, b = b, a + b |