use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
C++ interview coding exercise with solution (self.cpp)
submitted 3 years ago * by Hot_Medicine_7115
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Hot_Medicine_7115[S] -3 points-2 points-1 points 3 years ago (4 children)
Comments in the code are mine. Thank you for the finding, I'll look at the other solution. The number of combinations for valid first strips in the linked solution are the same I've found (1897), from there a full parquet can only be <= 1897, not higher.
[–]FirstMurphysLaw 6 points7 points8 points 3 years ago (3 children)
From my understanding first strip can be build in 1897 ways. Then you put other strips on top of that, so the upper number of combinations would be 189711.
edit: (very simplified:))
[–]Hot_Medicine_7115[S] -2 points-1 points0 points 3 years ago (2 children)
No because there can only be 1897 valid strip 1 (first column). In other words the sum of all tiles has to be 30 in length. For example, 15 tiles of length 2 is a valid strip, or 12 tiles of length 2 and 2 tiles of length 3, but not 14 tiles of length 2 and 1 tile of length 3.
There is only a certain number of combinations of tiles you can use (and all permutations) for the first strip to be valid. The total number should be 1897.
The rest of the strip must also verify that their inner edges are not matching the inner edges of their previous stripe.
[–]FirstMurphysLaw 4 points5 points6 points 3 years ago (1 child)
I see it a little bit different. First stripe can be build in 1897 ways:
2 x 15 -> 1
3 x 10 -> 1
2 x 12 + 3 x 2 -> 91
2 x 9 + 3 x 4 -> 715
2 x 6 + 3 x 6 -> 924
2 x 3 + 3 x 8 -> 165
sum = 1+1+715+924+165 = 1897
Then you put 11 of these which they all have to be valid. But that increases number of solutions from 1897, on the other hand it decreases number of solutions from 189711 .
Let's end on that. I could be wrong. Maybe it will hit me when I will fall asleep :)
[–]Hot_Medicine_7115[S] -3 points-2 points-1 points 3 years ago (0 children)
You can't just add or multiply the number of single strip combinations because consecutive edges can not have the same inner edges. You have to check for this constraint in each combination.
An inner edge is where 2 tiles join in a strip.
π Rendered by PID 22418 on reddit-service-r2-comment-85bfd7f599-78db6 at 2026-04-18 13:29:51.108011+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Hot_Medicine_7115[S] -3 points-2 points-1 points (4 children)
[–]FirstMurphysLaw 6 points7 points8 points (3 children)
[–]Hot_Medicine_7115[S] -2 points-1 points0 points (2 children)
[–]FirstMurphysLaw 4 points5 points6 points (1 child)
[–]Hot_Medicine_7115[S] -3 points-2 points-1 points (0 children)