-
Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a...
-
123456789101112131415161718192021222324252627282930313233343536373839404142public class EliminationGame { /** * There...
-
123456789101112131415161718192021222324252627282930313233import java.util.Arrays;import java.util.HashMap;import java.util.Li...
-
12345678910111213141516171819202122232425262728293031323334353637383940414243public class FindPeakElement { /** *...
-
123456789101112131415161718192021222324252627282930313233343536373839import java.util.Comparator;import static java.util.Arra...
-
12345678910111213141516171819202122232425262728293031import utils.ListNode;public class LinkedListRandomNode { /** * ...
-
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what...
-
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import java.util.Arrays;impo...
-
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849public class LongestSubstringAtLeast...
-
123456789101112131415161718192021222324252627public class PowerofFour { /** * Given an integer (signed 32 bits), writ...