Month: October 2014

My Favorite Data Structure – The Map of Lists

Last week, I wrote about Big O Notation in Apex and how having a O(n) was a perfectly acceptable solution for any Apex problem. However, trying to avoid having to go through nested for loops is often a tricky proposition when you have to process so much data in a single SOQL query. Probably much

Dealing with Big O in Apex

Big O notation is probably the bane of many Computer Science undergrads’ existence. It most certainly was one of mine back in my college days. When you are young and learning programming for the first time, why would you want to waste your time on boring lectures learning about algorithm theories and optimization? When you