We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- All Contests
- ProjectEuler+
- Project Euler #174: Counting the number of "hollow" square laminae that can form one, two, three, ... distinct arrangements.
- Discussions
Project Euler #174: Counting the number of "hollow" square laminae that can form one, two, three, ... distinct arrangements.
Project Euler #174: Counting the number of "hollow" square laminae that can form one, two, three, ... distinct arrangements.
Sort by
recency
|
25 Discussions
|
Please Login in order to post a comment
Your programme can be tested using these test cases.
It's strange. I got the right answer for 10**6 on projecteuler, but TestCase2 won't pass.
Here is my code:
Useless problem Time limit excceds by small margin even for O(N) pre-computation and O(1) queries Tried 6-7 languages, worked in Python 2
As 100% solutions are already posted, here is in Java :
Hi all, any suggestions for the optimization here. Should I precompute the results as well for every possible input?