Skip to content

Instantly share code, notes, and snippets.

View samagra14's full-sized avatar
💭
You sure this isn't a simulation?

Samagra Sharma samagra14

💭
You sure this isn't a simulation?
View GitHub Profile
@samagra14
samagra14 / prof.md
Created October 4, 2019 22:32
List of Professors to target.
@samagra14
samagra14 / tutorial.md
Last active September 9, 2018 05:43
Solutions to the tutorial problems.

Solutions to tutorial problems

1. Hamming distance

public class Solution {
    // DO NOT MODIFY THE LIST. IT IS READ ONLY
    public int hammingDistance(final List<Integer> A) {
        int max = Collections.max(A);
 int d = digits(max);