Let's have programming language independent coding challenges

Kaustubh Katdare

Kaustubh Katdare

@thebigk Oct 22, 2024
Wondering if CEans can post programming related questions or challenges so that other CEans can work on them and everyone benefits by upgrading their programming skills? I don't have a set of questions, but I'm sure many of you will definitely have challenging questions & awesome way to code them?

Let's keep it all language independent. Each new question should have its own separate thread. What do you say?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Neeraj Sharma

    Neeraj Sharma

    @neeraj-iAaNcG Jul 25, 2013

    That's a great idea. And may be we can have some on SQLs too. I can post questions if you give me green signal 😀
  • simplycoder

    simplycoder

    @simplycoder-NsBEdD Jul 25, 2013

    Should we post questions that will have only single answer or shall we host some competition based website like codechef on which we can have multiple input-output questions?

    I'll gladly participate in it.
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Jul 25, 2013

    I think someone needs to make a headstart. If the activity gets good response, we can then think of launching a dedicated 'app' through our apps section that will 'gamify' the whole thing.

    How to do this - I'll leave it to the coders. I'm not one, so I'd better step out. 😀
  • simplycoder

    simplycoder

    @simplycoder-NsBEdD Jul 25, 2013

    Ok, I would initiate this.

    1)In how many ways a 4x4 matrix be represented as a magic square.
    PS: All reflections and rotations to be considered.

    All the submissions are supposed to be done on <a href="https://www.ideone.com/" target="_blank" rel="nofollow noopener noreferrer">Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com</a>
    and PM your links to me.

    Please mention your CE id and the language which is used to compile.
    Also make sure that you provide me the correct link so that I can recompile your code again.

    Your submission should be capable of printing combinations, each on a new line.
    and there should be a blank line after each magic square.
    However you need not print it (This would be used to authenticate your entry).
    eg.
    There are x combinations.
    ---------------------------------------
    1 {Corresponding magic square}
    ----------------------------------------
    2 {Corresponding magic square}
    ----------------------------------------

    where x is the number which is computed.
    However, you must use System time from start of your main function/method till the end.
    and print the elapsed time in milliseconds.

    An expected output is
    XXXXX
    Took YYYY ms to compute.
    Please note any entry found to be a copied solution or similar would be disqualified.

    You can submit multiple entries, there is no negative points for wrong solutions or number of entries sent.
    However your last entry would be considered.
    Please note that this should be computed by writing a program in any language supported by
    <a href="https://www.ideone.com/" target="_blank" rel="nofollow noopener noreferrer">Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com</a>
    Person with correct output in least execution time and least number of submissions wins.
  • Anoop Kumar

    Anoop Kumar

    @anoop-kumar-GDGRCn Jul 25, 2013

    It can be start from simple logic challenges.
    Is anyone heard of <a href="https://www.topcoder.com/" target="_blank" rel="nofollow noopener noreferrer">Top Website Designers, Developers, Freelancers for Your Next Project | Topcoder</a> .