View InputHandler.java
public class InputHandler {
// clears the screen
public static void clearScreen() {
final String ANSI_CLS = "\u001b[2J";
final String ANSI_HOME = "\u001b[H";
System.out.print(ANSI_CLS + ANSI_HOME);
System.out.flush();
}
}
View binarySearch.c
#include <stdio.h>
#include <math.h>
#define true 1
typedef double (*mathFn)(double);
const double EPS = 1e-9;
View Braces.hpp
#include <string>
// #include <algorithm>
// #include <iostream>
#include <vector>
#include <map>
#include <stack>
// #pragma once
#ifndef BRACES_H
View decToRoman.cpp
#include <map>
#include <string>
std::string decimalToRoman(int n) {
std::string roman = "";
const std::map<int, std::string> rd = {
{1000, "M"},
{900, "CM"},
{500, "D"},
{400, "CD"},