Skip to content

Instantly share code, notes, and snippets.

View salRoid's full-sized avatar
🦁
Focusing

Sajal Gupta salRoid

🦁
Focusing
View GitHub Profile
import java.io.FileInputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class MD5 {
public static String getMD5(String input) {
try {
MessageDigest md = MessageDigest.getInstance("MD5");
@salRoid
salRoid / InterviewReadySQL.md
Last active January 2, 2021 14:30
PL/SQL Interview Preparations

Interview Ready SQL

This is an topic wise check list to prepare before an SQL Interview

  • RDBMS
  • DBMS
  • DML/DDL/TCL
  • Aggregate Functions
  • String Functions
  • Functions
@salRoid
salRoid / BiasedDice.cpp
Created March 23, 2021 17:56
MakeMyTrip Interview Question || Create a biased dice to 2X the probability of getting an even number.
#include <iostream>
using namespace std;
int getRandomNumber() {
return (rand() % 48 + 7);
}
int castDice() {
int randomNumber = getRandomNumber();