#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    9
    Rep Power
    0

    Help with queue - help with algoritem


    hello there...

    i need to write progrem in c language that check if
    queue 1 are found in queue 2
    for exsemple : queue 1 - 3,12,6,1
    q2 - 6,3,34,1,1,12,6,8,5,1 yes!

    need to check if all numbers in q1 found on q2
    thank u , for all that helping me.
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,366
    Rep Power
    1870
    So rather than engaging in a conversation where you put in some effort to try and solve your own homework, you decide to just dump the same message after spending the weekend partying.

    I mean, you could at least tell us some properties of your existing queue implementation to indicate whether sorting (as suggested) is actually a viable thing to do (array - perhaps, linked list - perhaps not).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo