CrazyEngineers
  • Tough Programming Challenges (Language Independent)

    Kaustubh Katdare

    Kaustubh Katdare

    @thebigk
    Updated: Oct 25, 2024
    Views: 1.0K
    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! 😀
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Manish Goyal

    MemberJun 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
    Are you sure? This action cannot be undone.
    Cancel
  • durga ch

    MemberJun 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?
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJun 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
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJun 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?
    Are you sure? This action cannot be undone.
    Cancel
  • durga ch

    MemberJun 24, 2010

    @Goyal

    😁- C
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJun 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?
    Are you sure? This action cannot be undone.
    Cancel
  • durga ch

    MemberJun 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.
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJun 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 ?
    Are you sure? This action cannot be undone.
    Cancel
  • Sahithi Pallavi

    MemberJun 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?
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJun 28, 2010

    just concentrate on units of p,v,i

    pattern matching may help you
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register