This file contains 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.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
/** | |
* http://initcodes.blogspot.com/2018/04/number-pairs-whose-sum-is-multiple-of.html | |
* | |
* Kelly gives Ashley N chocolates each having a price pi, (where pi is the price of ith chocolate), |
This file contains 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: NumberOfSubsetsWithTargetSum.java | |
* Created: 2018-04-13 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 manandharsabbirk.appspot.com | |
*/ | |
package subsets; | |
import java.util.HashMap; |
This file contains 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: NumberOfSubsetsWithTargetSum.java | |
* Created: 2017-04-13 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2017 manandharsabbirk.appspot.com | |
*/ | |
/** | |
* Computes Number of Sub-sets that have sums to targetSUm | |
* |
This file contains 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
<template> | |
<!-- Or you set a path to a seperate Template File here --> | |
<file>java.java</file> | |
<!-- The filename for the new File, you can use the arguments to make it dynamic --> | |
<filename>$name.java</filename> | |
<!-- Optional: Add as much arguments as you need, they will be asked in the order specified --> | |
<arguments> | |
<name>Name (without extension):</name> |
This file contains 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: $name.java | |
* Created: $date2 | |
* Author: $author | |
* | |
* Copyright (c) $year https://manandharsabbirk.appspot.com | |
*/ | |
import java.io.*; | |
import java.util.*; | |
This file contains 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
Show hidden characters
{ | |
"excluded_dir_patterns": [ | |
"tmp", "|.git", "|.svn" | |
], | |
"attrs": { | |
"author": "Sabbir Manandhar", | |
"company": "Hogwart", | |
"email": "manandhar.sabbir@gmail.com", | |
"github": "github.com/leosabbir" | |
}, |
This file contains 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: BinarySearch.java | |
* Created: 2017-10-25 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 WorldLingo Inc. | |
*/ | |
import java.util.List; | |
import java.util.ArrayList; |
This file contains 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
/** | |
* Converts given Decimal number into Binary representation | |
* @param m decimal number to converto to binary | |
* @return Binary representation of input decimal number | |
*/ | |
public String convert(int m) { | |
String binary = ""; | |
while(m > 0) { | |
binary = (m % 2) + binary; // append new remainder at the beginning | |
m /= 2; |
This file contains 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: StaticMethodsTest.java | |
* Created: 2018-05-03 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwarts. | |
*/ | |
package com.worldlingo; | |
import junit.framework.Assert; |
This file contains 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: DetectLoopInLinkedList.java | |
* Created: 2018-05-09 | |
* Author: Sabbir Manandhar | |
* | |
* Copyright (c) 2018 Hogwart | |
*/ | |
import java.util.HashSet; | |
import java.util.Set; |
OlderNewer