Code Kata Challenge – 2nd Place: A Unique Submission

BTI360 Blog / July 7, 2014 in 

A unique submission to our code kata challenge has won himself 2nd place and a copy of Are You Smart Enough to Work at Google?. So let’s review the Challenge, announce the winner, and check out his code:/wp-content/uploads/2014/07/2ndPlace.png

  • Implement a queue class using 2 stacks internally
  • The queue class should implement an insert and retrieve method
  • The 2 internal stacks should implement push and pop methods

And the 2nd place winner is? Andy! A good friend of BTI360.

Andy’s implementation gets extra points for a couple unique attributes:

  1. Front-end language – Written in JavaScript and leveraged AngularJS.
  2. JSFiddle – Posted on JSFiddle and to make it easily testable in the browser.
  3. Efficient design – More efficient than passing each element back and forth between stacks before retrieval.

The implementation also inspired the judge to take a few lessons in AngularJS, at angular.codeschool.com. If you’ve never used JSFiddle this is a good opportunity to take a look!

You can try out the code on JSFiddle: http://jsfiddle.net/AFpYL/3/

Previous

Code Kata Challenge – 3rd Place: Efficiency

Next

Code Kata Challenge – And the Winner Is…

Close Form

Enjoy our Blog?

Then stay up-to-date with our latest posts delivered right to your inbox.

  • This field is for validation purposes and should be left unchanged.

Or catch us on social media

Stay in Touch

Whether we’re honing our craft, hanging out with our team, or volunteering in the community, we invite you to keep tabs on us.

  • This field is for validation purposes and should be left unchanged.