Background
I want to buy an plot of land and build my house on it.
My house should be rectangular, and as large as possible; however, the available plots have lots of rocky areas that I cannot build on, and I'm having trouble fitting a potential house on the plots.
I want you to write a program ...
important note: Because this challenge only applies to square matrices, any time I use the term "matrix", it is assumed that I am referring to a square matrix. I am leaving off the "square" description for brevity's sake.
Background
Many matrix-related operations, such as computing the determin...
Everyone knows what run-length encoding is. It has been the subject of many code-golf challenges already. We'll be looking at a certain variation.
Example
Normal: 11222222222222222222233333111111111112333322
Run-length: 112(19)3(5)1(11)2333322
The number in parentheses specifies the number of...
The way it was explained to me was that if they were stressing they were doing something late they'd use 2400. It would depend on the time span, too. You wouldn't really see 2400-0600 for example. I think they just liked to not "wrap" the time if possible.
I've even seen 2600 for 2AM on one occasion. It was weird.
I'm half-convinced aditsu has a bot running that posts obliquely related youtube videos at random intervals. The NLP aspect is impressive from what I've seen so far.
So, today we had a local contest in my state to find eligible people for the international math olympiad "IMO" ...
I was stuck with this very interesting algorithmic problem :
Let $n$ be a natural number >= 2, we take the biggest divisor of $n$ but it must be different from $n$ itself, substr...