<p>Nope. In act I did this problem for practice yesterday. And my teacher graded it. I got full points.</p>
<p>My code was the exact same as your minus the boolean. So efficiency doesn’t matter, unless you start re-writing code. That can get you penalized.</p>
<p>^curious about that too, now that I know that such a thing exists (sorry for being complete noobsauce about programming… I’m more of a humanities guy). Seems like it’d be a huge time saver.</p>
<p>You can use any code in the standard Java library, if I’m not wrong.
I doubt I stayed within the confines of the Java subset last year, since I didn’t know one existed. :P. (Most of my Java skills have come from random programming where I looked code up in the API and just wrote, rather than from in class).</p>
<p>Also, efficiency is definitely irrelevant. I wrote way more than necessary last year in order to circumvent some stuff that I couldn’t remember.</p>