Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Cooke wrote:Recursion and using variables declared outside of the recursive method Liutauras?
Tim Driven Development | Test until the fear goes away
Tim Cooke wrote:I managed to get part 1 done by simply processing the input sequence from left to right also using recursion to collect all the meta values. It was quite tidy even.
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Stephan van Hulst wrote:I really liked that one, because it's the first real example I've seen of a case where a LinkedList greatly outperforms an ArrayList.
Mike Simmons wrote:it's fundamentally an O(N^2 ) operation to delete from the ArrayList anywhere but the end.
Operation | Performance |
---|---|
arrayList.remove(int) | O(n) |
linkedList.remove(int) | O(n) |
arrayListIterator.remove() | O(n) |
linkedListIterator.remove() | O(1) |
Tim Cooke wrote:Day 10 was a fun one. It's a pleasant change of tact when you have to use your eyes to solve it rather than getting the computer to do it. The trick was having the computer present you visibly decipherable information but not too much or too little of it. Part 2 was a doddle.
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
There are three kinds of actuaries: those who can count, and those who can't.
Piet Souris wrote:Java allows you to write 50_000_000_000, to prevent all possible misery ;
Tim Driven Development | Test until the fear goes away
There are three kinds of actuaries: those who can count, and those who can't.
Tim Driven Development | Test until the fear goes away
Tim Driven Development | Test until the fear goes away
Consider Paul's rocket mass heater. |