Thread: finding the largest ascending subsequence..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hacker MeTh0Dz's Avatar
    Join Date
    Oct 2008
    Posts
    111
    This appears to be a similar topic.

    http://cboard.cprogramming.com/showthread.php?t=108515

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, but it's not "how to solve this problem" that is the question here, but how to solve it recursively.

    I'm not sure if transgalactic have a teacher that still wishes that he (she) was using lisp or some other purely functional language where recursion is the natural method of solving ALL repetitions, but I personally think it's a bad idea to try to solve all problems [as one function, at least] via recursion.

    Like Salem says, it's like "Can you tie your shoelaces with one hand" - it has little practical use in real life [except for those relatively few people who for some reason can't use both hands for daily tasks, e.g. from birth defects, accidents, etc].

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 22
    Last Post: 05-29-2009, 05:44 PM
  2. Finding the 3 largest numbers of the five entered
    By Bkgrant in forum C Programming
    Replies: 11
    Last Post: 02-13-2009, 01:08 PM
  3. finding the largest number in a binary search
    By Emeighty in forum C++ Programming
    Replies: 20
    Last Post: 07-31-2008, 03:19 AM
  4. Find largest and second largest number (help)
    By Arkon in forum C++ Programming
    Replies: 6
    Last Post: 01-20-2006, 11:21 PM
  5. Finding largest element in array
    By Chaplin27 in forum C++ Programming
    Replies: 2
    Last Post: 04-12-2005, 09:18 PM