Skip to content

Instantly share code, notes, and snippets.

View mrincodi's full-sized avatar

Mario Rincón mrincodi

View GitHub Profile
@mrincodi
mrincodi / Rank.java
Last active November 13, 2016 02:16
A Java solution for the Rank problem in the Facebook code lab: https://codelab.interviewbit.com/problems/rank/
package fbExercises;
import java.util.ArrayList;
import java.util.Arrays;
/**
*
*
* Given a string, find the rank of the string amongst its permutations sorted lexicographically.
Assume that no characters are repeated.
@mrincodi
mrincodi / NearbyWordsFB.java
Created November 12, 2016 23:27
A complete solution for the "How to Crush Your Coding Interview" problem, in Java.
package other;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;