I'm still upset about the massive waste of time. Why did you not consider my resume before giving me a massive take home project. I took a day off work to build this thing, the least you could do is look at it. I shined that code to a beautiful luster.
Anyone here from FB who passed this and knows what I did wrong?
This rule is important because it makes the widths of the events deterministic, which otherwise they are not. That same test illustrates this exact problem, why not have the widths be 1/2, 1/4, 1/4, 1/2? Considering the first constraint the correct layout is all having width 1/3.
https://github.com/thejsj/calendar-exercise/blob/master/test...
I tried to impress them by not using any libraries, that may have been a mistake. It was a couple years ago now...
> If two events collide in time, they MUST have the same width. This is an invariant. Call this width W
The solution is actually much easier that way.
If they say no, you say no.
Also, if there's no pay, wouldn't you have copyright over that part of the code then? You could arbitrarily tell to stop using your code at any time, and sue them if they don't..