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
final class HexSHA512 { | |
public static final function Hash($s) { | |
return (bin2hex(hash('sha512', $s.bin2hex($s), true))); | |
} | |
public static final function Verify($s, $h) { | |
return (HexSHA512::Hash($s) == $h); | |
} | |
} | |
$s = "hello there"; |
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; | |
#define null 0 | |
class QueueArray { | |
private: | |
int front; | |
int rear; | |
int numOfEl; | |
int size; |
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; | |
#define null 0 | |
class StackArray { | |
private: | |
int size; | |
int *stackArr; | |
int top; | |
void resize() { |
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; | |
#define null 0 | |
class Node { | |
public: | |
int data; | |
Node *next; | |
Node *prev; | |
Node(int data) { |
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; | |
#define null 0 | |
class Node { | |
public: | |
int data; | |
Node *next; | |
Node(int data) { | |
this->data = data; |
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 <string> | |
using namespace std; | |
#define null 0 | |
class Student { | |
public: | |
string name; | |
int age; | |
float gpa; |
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
void swap(int &a, int &b) { | |
int temp = a; | |
a = b; | |
b = temp; | |
} | |
void showArray(int arr[], int size) { | |
for(int i = 0; i < size; i++) { | |
cout << arr[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
void swap(int &a, int &b) { | |
int temp = a; | |
a = b; | |
b = temp; | |
} | |
void showArray(int arr[], int size) { | |
for(int i = 0; i < size; i++) { | |
cout << arr[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
void swap(int &a, int &b) { | |
int temp = a; | |
a = b; | |
b = temp; | |
} | |
void showArray(int arr[], int size) { | |
for(int i = 0; i < size; i++) { | |
cout << arr[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
void swap(int &a, int &b) { | |
int temp = a; | |
a = b; | |
b = temp; | |
} | |
void showArray(int arr[], int size) { | |
for(int i = 0; i < size; i++) { | |
cout << arr[i] << ", "; | |
} |
OlderNewer