Steven Fraser wrote:Liutauras Vilda,
Which would lead me to ask; when writing programs, how descriptive do we want to be? Should be?
Junilu Lacar wrote:The name extraBoxAsPerNeed does not appeal to me as much and the distinction it has over boxForExtra isn't that much. However, I might experiment for a minute with similar names with like intent such as boxForAnyExtra(candybars). My goal is to make the code read like a casual conversation, which I find much more pleasing. "Plus an extra box as per need for candy bars" just isn't consistent with the way I talk in real life.
Junilu Lacar wrote:
Tom Joe wrote:Unfortunately, there are no tutorial ratings and there are no...courses on pluralsight
Nathan Milota wrote:
Campbell Ritchie wrote:Yes, I think that would be a working solution; somebody else has already suggested it.
I didn't read it. I was just making sure I understood it myself. The problem wasn't my lack of skills then. It was just not understanding what the problem was asking.
The word driver threw me off, because I was thinking installing drivers on your computer.
Nathan Milota wrote:I have to ask, is this a typical Java interview question? If so, I'm way off from being ready for the first interview, because I don't even know what this question is asking.
Instructions wrote:You are given an array on integers n length n for a driver. The integer at index i symbolizes the time allocated to her or his i'th task in minutes. The optimal time for a break s between two tasks i and i+1, when the sum of all tasks from 0 to i equals the sum i+1 to n .
Write a method that returns index i where the condition above is met. If there is no such index the driver is not awarded a break and the method returns null.
Keep in mind that the user that is running your program needs to have access to the C: root this way.