This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: WordCounter.java | |
* Created: 5/14/2018 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwart Inc. | |
*/ | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
/** | |
* This is a Shuffler class that can be used to shuffle given input array | |
* uniformly | |
* | |
* @author Sabbir Manandhar | |
* @version 1.0 | |
*/ | |
public class Shuffler { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: MatrixShortestDistanceRecursive.java | |
* Created: 2017-06-28 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2017 Hogwarts. | |
*/ | |
/** | |
* Given a MxN matrix. Filled with 0's | |
* There is one source location indicated by character '*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: MatrixShortestDistanceBFS.java | |
* Created: 2017-06-28 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2017 Hogwarts. | |
*/ | |
import java.util.LinkedList; | |
import java.util.Queue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: HermanWorm.java | |
* Created: 5/24/2018 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwart Inc. | |
*/ | |
import java.util.LinkedList; | |
import java.util.Queue; | |
import java.util.Scanner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: CoinChange.java | |
* Created: 2018-04-26 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 WorldLingo Inc. | |
*/ | |
/** | |
* Number of ways given denominations can sum up a given total | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: StockBenefit.java | |
* Created: 2018-04-04 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwart Inc. | |
*/ | |
/** | |
* Compute potential max profit | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: PowerOfPowers.java | |
* Created: 2018-05-26 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwart Inc. | |
*/ | |
import java.io.*; | |
import java.util.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: MaximumSquareSubMatrix.java | |
* Created: 2018-06-02 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 https://manandharsabbirk.appspot.com | |
*/ | |
import java.util.Arrays; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File: MissingTwoNumbers.java | |
* Created: 6/6/2018 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 WorldLingo Inc. | |
*/ | |
/** | |
* @author Sabbir Manandhar (lastname)(dot)(firstname)(at)gmail(dot)com | |
* @version 1.0 |