Skip to content

Instantly share code, notes, and snippets.

@cooler333
Created January 5, 2018 12:46
Show Gist options
  • Save cooler333/65752b7358ee93cc1c073bdc22c31d0d to your computer and use it in GitHub Desktop.
Save cooler333/65752b7358ee93cc1c073bdc22c31d0d to your computer and use it in GitHub Desktop.
1) Sub-Array with the Largest Sum
You are given an array with integers (both positive and negative) in any random order.
Find the sub-array with the largest sum
2) Given 2 words, return true if second word has a substring that is also an anagram of word 1.
LGE, GOOGLE => True
GEO, GOOGLE => False
3) How Strong is an Egg?
You have two identical eggs.
Standing in front of a 100 floor building, you wonder what is the maximum number of floors from which the egg can be dropped without breaking it.
What is the minimum number of tries needed to find out the solution?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment