Thread: Queues/Stack exercises

  1. #1
    Registered User sureshhewa's Avatar
    Join Date
    May 2008
    Location
    sri lanka
    Posts
    13

    Post Queues/Stack exercises

    if u guys have some Queues/Stack exercises please post me links.thank you!

  2. #2
    * noops's Avatar
    Join Date
    Jun 2008
    Posts
    108
    1. Create a queue.

    2. Create a stack.

  3. #3
    Registered User sureshhewa's Avatar
    Join Date
    May 2008
    Location
    sri lanka
    Posts
    13
    i know those. i need practical exercises

    Code:
    eg: 2[9/4{(3+3)-2}]
    to check whether this expression correct or wrong we can use a stack and figure out brackect are placed in order or not

    i need like that practical Questions

  4. #4
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    To my understanding, a queue and a stack are just conceptual ideas of a data structure. You can probably start by making linked lists of sorts and then expand it into a queue/stack. If you aren't looking for a dynamic data structure, you can just implement an algorithm on an array for the stack(FIFO) or queue(LILO) mechanism for practice. I am really not that advanced at creating data structures, but what I do know i've learned off of google, specifically looking up "data structure syllabus" and following those links to sites and stealing assignments >< Do this and you can find loads of examples.

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    43
    Create a queue and stack with multiple threads accessing them at the same time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dietel C How to program exercises
    By droseman in forum C Programming
    Replies: 4
    Last Post: 10-02-2008, 09:55 AM
  2. seeking for exercises
    By smoking81 in forum Linux Programming
    Replies: 7
    Last Post: 09-14-2008, 06:46 PM
  3. C programe Exercises?
    By RahulDhanpat in forum C Programming
    Replies: 10
    Last Post: 02-29-2008, 01:26 PM
  4. Exercises
    By blankstare77 in forum C++ Programming
    Replies: 2
    Last Post: 08-31-2005, 05:46 PM
  5. Where can i find C exercises to do?
    By Nutshell in forum C Programming
    Replies: 4
    Last Post: 02-21-2002, 02:33 AM