Thin Air Multitouch

Although I have a deep interest in all ways that we interact with technology, one my favorite niche areas of HCI is Multitouch research. Ever since I saw Jeff Han give his TED Talk on Multitouch technology, I was hooked. This summer I wanted to make my own Multi... Read More

View Next Project View Complete Portfolio

Web & Software Design Portfolio

If you're curious as to what I've been busy with, here's a list of projects I've been working on (in reverse chronological order) and a brief explanation of its story, goals, implementation and end result. pBug (November 2009) pBug was a special project given t... Read More

View Next Project View Complete Portfolio

Ramblings

View All Posts »


Coding Kata – February 2nd 2010 – Bite Sized Katas

0 Comments

In a slightly different vein, here are some smaller brainteasers for you to try!

  • Create an algorithm which divides any two numbers of different bases together.
    Does your algorithm work with negative numbers?
    How about negative bases?
  • How would you find a cycle in a linked list?
    Can you do it iteratively?
  • Multiply a number by 7 without using the multiplication operator.
    Can it be done without addition?

Coding Kata – February 1st 2010 – Flippin’ Lists

2 Comments

Goal: Flip tuples in a doubly linked list.
Example: Given A <-> B <-> C <-> D, have an algorithm produce B <-> A <-> D <-> C.

Constraints: All manipulations must be made to the original linked list, and minimize use of external data structures as much as possible.

Hmmm of the day: The ideal solution is fairly brief and elegant, so don’t try to over-think it unless you need to!


Coding Kata – January 29 2010 – Playing Vegas

4 Comments

Goal: Design and implement an algorithm to detect certain hands in a game of Poker. You are given your parameters as 5 ints [0-13] representing each value of the card. The hands to check are:

  • Four of a kind (ex: 5,4,5,5,5)
  • Full house (ex: 5,4,4,5,5)
  • Three of a kind (ex: 5,4,5,5,1)
  • Two pair (ex: 8,4,4,5,5)
  • Pair (ex: 7,1,2,5,5)
  • High card (ex: 1,2,3,4,5)

Constraints:

  • Return the String value or enum code (to your specification) representing each case

Hmmm of the day: Are there any poker hands which could fall into more than one category?