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 main() { | |
char userChar; | |
int userInt; | |
int count = 1; | |
cout << "Enter a character: "; |
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 <vector> | |
#include <cmath> | |
using namespace std; | |
// Mart Molle's Square Sorting algorithm | |
// Time Complexity: O(n^2), Theta(n^2), Omega(n) | |
// Space Complexity: O(1) | |
template <typename T> |
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 main() { | |
cout << "Enter a number between -50 and 50: " << endl; | |
int userInt; | |
cin >> userInt; | |
if (userInt > 50 && userInt < -50) { |
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; | |
// Rules: | |
// User will enter in 4 numbers: a, b, c, d | |
// a > b, b < c, c = d | |
int main() { | |
int num1, | |
num2, |
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; | |
bool cmp1(string a, string b) { | |
return a == b; | |
} | |
bool cmp2(string a, string b) { | |
for (int i = 0; i < a.size(); 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
#include <iostream> | |
using namespace std; | |
int main() { | |
cout << "Enter a number from 1 to 100: "; | |
int userInput; | |
cin >> userInput; | |
bool triggered = false; |
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
import string | |
private_e = 37 | |
private_n = 77 | |
encrypted_message = [] | |
decrypted_message = [] | |
for m in encrypted_message: | |
d = (m ** private_e) % private_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
<html> | |
<head> | |
<title>Todo List</title> | |
<style> | |
html { | |
background-color: red; | |
color: white; | |
} | |
#appTitle { | |
color: pink; |
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
<html> | |
<head> | |
<title>Todo List</title> | |
<style> | |
#appTitle { | |
color: pink; | |
font-family: Arial; | |
background-color: hotpink; | |
} | |
</style> |
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
// Written by John Pham | |
// [email protected] | |
#include <iostream> | |
// to use rand() and srand() | |
#include <stdlib.h> | |
// to use vectors | |
#include <vector> |
OlderNewer