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
/* | |
Recursive function to: | |
- Search elements on arrays | |
- Count elements on arrays | |
*/ | |
// Find the needle on the a; | |
// n = the last element index on array | |
// equals to arraysize-1 | |
int getElement(int a[], int needle, int n){ |
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
/* ================================== * | |
* Author: CristianCrazyIT | |
* Date: 6-12-2023 (dmy) | |
* Desc: Vector Plug Utilities | |
* ================================== */ | |
#include <stdio.h> | |
#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
/* ================================== * | |
* Author: CristianCrazyIT | |
* Date: 02-11-2023 (dmy) | |
* Desc: Simple Searching Functions | |
* ================================== */ | |
// Binary Search | |
int search(int* v, int n, int needle){ | |
int i = 0, j = n-1, m; | |
while(j >= i){ |
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
/* ================================== * | |
* Author: CristianCrazyIT | |
* Date: 02-11-2023 (dmy) | |
* Desc: Simple Sorting Functions | |
* ================================== */ | |
/* Selection Sort on int array[N-Dimension] */ | |
void selectionSort(int array_in[], int N){ | |
int min, tmp; | |
for(int i = 0; i < N; i++){ |
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
/* ========================================== | |
* Author: Cristian Capraro | |
* Date: 03-09-2023 | |
* Working with: BouncyCastle & Java Security | |
* :: Cryptographic Message Syntax | |
* ========================================== */ | |
package cmsoperations; | |
import java.security.KeyFactory; |