Skip to content

Instantly share code, notes, and snippets.

View AbsolutelySaurabh's full-sized avatar
🤗
Give me a problem, and I can write a partially running code in Java, Go, C/C++

Saurabh Singh AbsolutelySaurabh

🤗
Give me a problem, and I can write a partially running code in Java, Go, C/C++
View GitHub Profile
@AbsolutelySaurabh
AbsolutelySaurabh / MaxAvgStudents
Created December 10, 2019 05:45
Max average marks of students
package practice;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Scanner;
public class Solution2 {
private static Map<String, Double> studentsMap;
@AbsolutelySaurabh
AbsolutelySaurabh / FirstNonRepeating
Created December 10, 2019 05:50
First non-repeating character in a string
package practice;
import java.util.Scanner;
public class Solution1 {
//first non-repeating character in a string
private static int[] buildFreq(String str){
@AbsolutelySaurabh
AbsolutelySaurabh / AddingFractions.java
Created January 6, 2020 17:03
Adding Fractions in java
import java.io.*;
import java.util.*;
/*
* To execute Java, please define "static void main" on a class
* named Solution.
*
* If you need more classes, simply define them inline.
*/