|
Look in the tips.
I just saw a workup in the tips yesterday, there seems to be a slew of them posted all at once. The tip shows how to getBytes() for a graphic. We then have a Algorithmic challenge on how the [][] is split. My first idea is to test if (([].size() % 3)!= 0x0000)
That is to determine if there is a partial to be fitted into a modular three. The next thing that comes to mind is that if we want to get to 3x3 every time, we just divide by 3 to get a row and column count. Additionally, from experience - either check for zero before divide or trap it with exception handling. You may assign a default value in the catch if that is easier than dealing with help department:
catch( divide by zero ){ int val = saneDefault;}
Program will then continue to run minus weekend ruiners.
|