Tough Programming Challenges (Language Independent)

Kaustubh Katdare

Kaustubh Katdare

@thebigk Oct 25, 2024
I'm wondering whether we have someone who can contribute tough programming problems that are language independent. That means, the solution can be posted in any language (C, C++, JAVA) etc.

It would be very interesting initiative here on CE. Anyone?

PS: If someone comes up with original puzzles, let us know. We'd be happy to award a special prize! 😀

Replies

Welcome, guest

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

CrazyEngineers powered by Jatra Community Platform

  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 23, 2010

    Here a simple but a little bit complicated problem by me

    There is common formula in Physics to compute Power ie P=v*i
    where V is voltage in Volts and I is current in ampere

    You have to write a program to
    1:-compute power if voltage and current is given
    2:-compute voltage if power and current is given,
    3:-Compute current if power and voltage is given

    Seems easy?????

    Let us make it a little bit tough

    The current ,voltage and current are given in a statement

    Like find the value of current if given voltage is 3 volts and power is 300 watts
    Remember Statement can be modified in any form
  • durga ch

    durga ch

    @durga-TpX3gO Jun 23, 2010

    I am trying to write programs for a packet generator ( TCP or others) and then for a packet classfier.
    Anyone wants to try?
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 24, 2010

    Where are you finding problem ?

    It is simple

    you have to compute either power ,voltage or current ,but here you will not be given power ,voltage or current directly as input

    Instead input will be in the form of a statement and your program should be intelligent enough to find what to compute and what is given?

    I hope,now it is quite clear
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 24, 2010

    durga
    I am trying to write programs for a packet generator ( TCP or others) and then for a packet classfier.
    Anyone wants to try?
    which language will you follow?
  • durga ch

    durga ch

    @durga-TpX3gO Jun 24, 2010

    @Goyal

    😁- C
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 24, 2010

    @Durga :-I am also interested in developing programs like this,but i have only basic knowledge of packets like arp,icmp.I don't know about the whole structure of these packets .

    Can you please provide me some source or link where i can learn all these?
  • durga ch

    durga ch

    @durga-TpX3gO Jun 27, 2010

    opps! sorry. I was kinda busy last weekend 😁

    All packets are not same as you might already be knowing. The packet structure depends on the type of packet you are sending /receiving.
    I myself, don't really know any resources where you get to practise them.
    may be you can try finding similar programs online and understand how they work and try to come up with your own versions.
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 28, 2010

    No solution to my problem

    Is it really tough or you guys are really busy with some other work ?

    Should i give you a clue ?
  • Sahithi Pallavi

    Sahithi Pallavi

    @sahithi-oJZaYj Jun 28, 2010

    goyal420
    No solution to my problem

    Is it really tough or you guys are really busy with some other work ?

    Should i give you a clue ?
    I started trying goyal!
    and your clue will help us. whats the clue?
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Jun 28, 2010

    just concentrate on units of p,v,i

    pattern matching may help you