did i code right?
The assigment was to get the stack of class couple that has number and appears, and im supposed to return a stack that has numbers from low at the bottom to high at the top, and each appear the number appear for that number, so for example for 1,2 0,3 it would return 0,0,0,1,1 did i write the code right? Does it work? How can i improve it, its probably too long
13 Replies
$screenshot
If you want to share code, please copy and paste the code into a markdown code block in your discord post, or paste the code into https://paste.mod.gg/ and share a link to it in your discord post.
If want to share a screenshot, please do not take a photo of your computer screen with your phone or camera. Instead see https://www.take-a-screenshot.org/ for how to take a screen capture on your device. You may want to crop the image before pasting it into your discord message.
Does what work? The code won't even compile, you have compilation errors
Its because its given i have this class and dont need to create it and got a copy stack static i didnt create
Also forgot to mention im using a package so everything with stack is the same but Top() is the same as pop but it doesnt remove only observes/retrieves
.
@Buddy, Citizen of Pluto 🔱 ok?
$codegif
But please use $paste
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
That way it doesn't fill up the chat and people can see your original question
Im on phone so its kind of hell to try that
Black screen
Good ye?
scuan🇮🇱
The assigment was to get the stack of class couple that has number and appears, and im supposed to return a stack that has numbers from low at the bottom to high at the top, and each appear the number appear for that number, so for example for 1,2 0,3 it would return 0,0,0,1,1 did i write the code right? Does it work? How can i improve it, its probably too long
Quoted by
<@203166497198047232> from #did i code right? (click here)
React with ❌ to remove this embed.
Also forgot to mention im using a package so everything with stack is the same but Top() is the same as pop but it doesnt remove only observes/retrieves
Oh man.. was i supposed to post this in code review? @Buddy, Citizen of Pluto 🔱
Might be a good category for this, yeah.