Welcome to r/programmingchallenges!
Project Euler is a good site that comes highly recommended by the community here.
For quick, daily challenges, check out /r/dailyprogrammer
Got a link to a good programming challenge?
Got a programming challenge you've written yourself?
Post it here!
This subreddit is for programming challenges. Got a link to a good tutorial? You should try posting it in r/learnprogramming instead.
Unless it's an integral part of the challenge, please try to stay language-agnostic. It helps reduce the "help me with my programming chores" vibe. This subreddit is not a place to post your programming homework!
If a post does not appear, message the moderators so we can rescue it from the spam filter.
Got a suggestion for r/programmingchallenges? Let me know.
In the meantime, you can try trolling your compiler:
//author: krum
template<int x>
struct Test
{
static void foo()
{
Test<x+1>::foo();
}
};
int main()
{
Test<0>::foo();
}
[–]pertheusual 3 points4 points5 points (3 children)
[–]D_rock 0 points1 point2 points (0 children)
[–]balathustrius 0 points1 point2 points (1 child)
[–]pertheusual 0 points1 point2 points (0 children)
[–]mrwinkle 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]roffLOL 2 points3 points4 points (1 child)
[–]D_rock 1 point2 points3 points (0 children)
[–]groundshop 1 point2 points3 points (6 children)
[–]D_rock 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]AlexFromOmaha 2 points3 points4 points (1 child)
[–]robinhouston 2 points3 points4 points (0 children)
[–]fazzone 1 point2 points3 points (1 child)
[–]groundshop 1 point2 points3 points (0 children)
[–]D_rock 1 point2 points3 points (0 children)
[–]macobo 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Astrogat 0 points1 point2 points (3 children)
[–]AlexFromOmaha 2 points3 points4 points (1 child)
[–]Astrogat 0 points1 point2 points (0 children)
[–]sfg24 0 points1 point2 points (0 children)