Search found 2 matches
- Thu Feb 12, 2009 8:29 am
- Forum: Challenges Solved
- Topic: Valuation
- Replies: 103
- Views: 9333
Wow. Some code-examples here seem to be kinda ... bloated :o Its so easy with Java (and nice to read as well :D) public class Valuation { public int calculate(String s){ StringBuffer sb = new StringBuffer(s); int result=0, pos=0; while(pos < sb.length()){ if(sb.charAt(pos) != 'x'){ result += Integer...
- Thu Feb 12, 2009 8:03 am
- Forum: Challenges Solved
- Topic: One Minute Man
- Replies: 39
- Views: 4538