Thread: Need help in C programming (too lazy)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    4
    ok. i think i have to use some kind of array right? i am not really really sure what an array is and how to implement it. i flipped through my text book and i still don't really know how to implement it. there are just some really simple examples but nothing sophisticated like this.

  2. #2
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Quote Originally Posted by cwillygs View Post
    ok. i think i have to use some kind of array right? i am not really really sure what an array is and how to implement it. i flipped through my text book and i still don't really know how to implement it. there are just some really simple examples but nothing sophisticated like this.
    I told you before. Forget about arrays, forget about C and forget about programming. Imagine all you have is a list of N cards and on each card there is a number. N can be up to 30 but no more. The values on these cards can be in any order. You want to find a number that is the lowest multiple possible of at least half of these cards. How would you go about finding that number using your cards?

    This is just math. Once you find how to solve this math problem you will have no trouble coding it. It should actually take you less than 10 minutes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Lazy allocation and *alloc()
    By Angus in forum Linux Programming
    Replies: 16
    Last Post: 09-08-2009, 01:01 PM
  2. strcmp returning 1...
    By Axel in forum C Programming
    Replies: 12
    Last Post: 09-08-2006, 07:48 PM
  3. lazy delete
    By kuwait in forum C++ Programming
    Replies: 7
    Last Post: 04-08-2003, 02:45 PM
  4. Programmers getting lazy?
    By Travis Dane in forum A Brief History of Cprogramming.com
    Replies: 40
    Last Post: 02-19-2003, 07:04 PM
  5. IT people - weird genius or simply narrow-minded, antisocial, lazy people
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 10-11-2001, 05:00 AM