| Mmm, that book sounds shady.
skze, pseudo code might take up too much time. If you get a complex recursion problem, pseudo code might be a good idea. But in general, it's probably best to spend 5-10 minutes reading and understanding the question. Assuming some programming competence, the solution is usually not hard to come up with if you understand what's being asked of you.
A few tips:
1. On the free response, the return type of the method you are writing (if there is one) can often lead you to the solution, so always keep it in mind.
2. If you see a Map question on the free response, keep in mind you cannot iterate a Map (but you often need to access each mapped value), but rather a set that contains the keys of the map.
3. Test small cases, they often lead to generalizations
4. It's always a good idea to set an inference variable to an object retrieved during a loop if you need to modify it. |