Skip to content

Instantly share code, notes, and snippets.

Avatar
🦁
Focusing

Sajal Gupta salRoid

🦁
Focusing
View GitHub Profile
@salRoid
salRoid / BiasedDice.cpp
Created Mar 23, 2021
MakeMyTrip Interview Question || Create a biased dice to 2X the probability of getting an even number.
View BiasedDice.cpp
#include <iostream>
using namespace std;
int getRandomNumber() {
return (rand() % 48 + 7);
}
int castDice() {
int randomNumber = getRandomNumber();
@salRoid
salRoid / InterviewReadySQL.md
Last active Jan 2, 2021
PL/SQL Interview Preparations
View InterviewReadySQL.md

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
View MD5.java
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");