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
# to run the program | |
# python run.py | |
# folders structure | |
# |->run.py | |
# |->Monday/ | |
# |->Monday/a.txt | |
# |->Monday/b.txt | |
# |->Monday/c.txt | |
# | |
# Example of a.txt file: |
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
// https://repl.it/LECL | |
#include <iostream> | |
using namespace std; | |
class SimpleClass | |
{ | |
private: | |
string privateStr; | |
public: |
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
// https://repl.it/LEHR | |
#include <iostream> | |
using namespace std; | |
class HelloWorldInterfaceA | |
{ | |
public: | |
virtual void printHelloWorldA() = 0; | |
}; |
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
// https://repl.it/LORG | |
#include <iostream> | |
using namespace std; | |
template <class T> | |
class LinkedListNode { | |
public: | |
T value; | |
LinkedListNode<T>* next; |
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
// https://repl.it/LO2s | |
#include <iostream> | |
#include <map> | |
using namespace std; | |
int main() | |
{ | |
std:map <string, int> intMap; | |
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
// https://repl.it/LO2b | |
#include <iostream> | |
using namespace std; | |
struct Vector3 { | |
float x, y, z; | |
Vector3& operator+(const Vector3& rhs) { | |
*this += rhs; |
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 os | |
i = 12 | |
while os.path.exists("./Solution" + str(i) + ".java"): | |
i += 1 | |
file_contents = """import java.util.*; | |
import java.lang.*; | |
public class Solution%s { | |
public static void testCase1() { | |
} |
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 os | |
i = 12 | |
while os.path.exists("./Solution" + str(i) + ".java"): | |
i += 1 | |
i -= 1 | |
os.system("javac Solution" + str(i) + ".java") | |
os.system("java Solution" + str(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
lsof -w -n -i tcp:port_number | |
kill -9 pid_number |
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
netstat -a -o -n | |
taskkill /F /PID 12345 |
OlderNewer