C
C#15mo ago
vankata06

❔ Can you help me with this exercies please.

https://pastebin.com/Gtyrj4Sk this is the code, i dont know how to get the last element from queue and to subtract with the stack.
Pastebin
namespace _01._Offroad_Challenge{ internal class Program { - ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
13 Replies
Iron
Iron15mo ago
Upload to GitHub please or share code so i dont have to download something
Pobiega
Pobiega15mo ago
You'll need to provide a lot more detail. One: upload the assignment as a PDF somewhere where it can be viewed online, not a docx. Two: Show your current code and tell us exactly what you are trying to do, what you have tried, and where you are stuck. If you were hoping that someone would do the entire exercise for you, thats not how it works
vankata06
vankata06OP15mo ago
this is the condition i dont know hot to take last element from the queue
No description
vankata06
vankata06OP15mo ago
Pastebin
namespace _01._Offroad_Challenge{ internal class Program { - ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pobiega
Pobiega15mo ago
a queue is a FIFO data structure, meaning first in first out
vankata06
vankata06OP15mo ago
yes but that isnt work
No description
Pobiega
Pobiega15mo ago
of course not
vankata06
vankata06OP15mo ago
No description
vankata06
vankata06OP15mo ago
i found how thanks
Pobiega
Pobiega15mo ago
well not really, that takes the first value from the queue, and the last value from the stack. thats how stacks and queues works
vankata06
vankata06OP15mo ago
I understnad thanks that is the right way for now
No description
Pobiega
Pobiega15mo ago
okidoki
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?