Skip to content

Instantly share code, notes, and snippets.

package sample.code.com;
/**
* @author farmbytes
*/
import java.util.Arrays;
import java.util.Random;
public class KthLargestElementInArray {
package sample.code.com;
/**
* Integer to ASCII
* @author farmbytes
*
*/
public class ItoaImpl {
private static final String itoa (int num, int base){
package sample.code.com;
public class StackUsingLinkedList {
private static class Node {
int num;
Node next;
Node(int num){
this.num = num;
package com.strings;
import java.util.HashMap;
import java.util.Map;
public class LongestSubstring {
public int findLongestSubstringOf2Chars(String input) {
Map<Character, Integer> map = new HashMap<Character, Integer>();
int curr_start = 0, curr_window_size = 1;