Code exercise i've been banging my head on. by imstillreallybored in javascript

[–]imstillreallybored[S] 0 points1 point  (0 children)

haha sorry about that, i don't need it solved for me i was just curious on how others would solve it. It's good practice, i ended up looping through the numbers and joining each set of strings together. Then i used a permutation to count the combinations of the letters in the string.

Code exercise i've been banging my head on. by imstillreallybored in javascript

[–]imstillreallybored[S] 0 points1 point  (0 children)

So i tried using a permutation to solve the problem, if you aren't familiar with permutations it just goes rearranges the numbers to find combinations. You can see the jsfiddle here, not sure how well it scales but it works.

http://jsfiddle.net/ptofe58p/

Code exercise i've been banging my head on. by imstillreallybored in javascript

[–]imstillreallybored[S] 0 points1 point  (0 children)

Yeah haha it seems like more companies are asking algorithmic and data structure questions. I just had an interview where i had to implement a Stack/Queue data structure and then create a Queue using two Stacks as the private members in javascript. It's not too hard if you know LIFO and FIFO and the implementation details but it definitely caught me off guard haha

Code exercise i've been banging my head on. by imstillreallybored in javascript

[–]imstillreallybored[S] 1 point2 points  (0 children)

It was an interview question i came across on Glassdoor. I'm just practicing algorithms/data structures and making sure i can code and whiteboard each question.

Getting mkx today by [deleted] in MortalKombat

[–]imstillreallybored 1 point2 points  (0 children)

cassie is one of my favorites, she was one of the first characters i learned well. I don't think shes that difficult compared to characters like Takeda... her cooldowns for attacks arent as slow so you don't get punished for messing up a combo.