I have finals in 2 weeks which make up 70% of the grade doing fucking DSAs and stupid math problems in C with pen and paper where they mark everything in syntax and drawing retarded trees give me a survival guideAlso:>Closed book>No notes nor calculators allowedt.ADHDlet
>>108893767try RTFM you dumb zoomlet
>>108893767clearly you need to find a different field of study
>>108893767Writing literal code with pen and paper is such pretentious university boomer bullshit.You will NEVER do this shit in the real world. When designing algorithm away from the computer, with just pen and paper, people naturally use sketches/diagrams, they don't write literal code. College is a meme.
>>108893813>You will NEVER do this shit in the real world.no shit Sherlock. its to prove you understand how to code without needing libraries.
>>108893813I disagree, I think its a crucial part of becoming good at code. Thinking about the compile process, anticipating problems, making sure everything runs right the first time. Dijkstra famously said that software engineers should study for 5 years straight BEFORE THEY ARE EVEN ALLOWED TO WRITE A SINGLE LINE OF CODE on a computer. If his words had been heeded software wouldn't be such a fucking mess as it is now.
>>108893813i do it all the time
>>108893767First, sketch out a diagram or two and visually represent the data structures. Then sketch through a traversal, search, etc of a very small instance. Then translate it to C. If you're lost, invent a function which solves the thing you don't know how to do and call it (i.e., rotate_avl() or something). Make sure everything is syntactically correct looking and organized looking, like you have your shit together.Don't give in without a fight. Make them fail you, don't fail yourself. If you can't figure something out, write reams of exploratory bullshit, code fragments, etc, etc, etc, just get partial credit. The person grading it may be drunk, high, or about to go fuck his gf/bf after your paper, give them some fig leaf to give you a B+ then go get their dick sucked. Good luck faggot.
>>108893832also if we didnt let jeets anywhere near a computer
>>108893810>another field of studyNigger I love DSAs and Memory Management in C I read SICP and C Programming Language which arent even on my syllabus they gave us boomer verbose books the professor wants and he wants his own style of teaching and thinks infinite for loops and do whiles are a good practice while he marked me down for using ternary operators instead of loops because "it was not on the assigned syllabus"
>>108893849please walk me through how you can replace a for loop with a ternary operator
>>108893840Thank you anon, on the flip side I have 90/100 average on all my assignments, im just nervous because I dont trust my fucking memory, let alone under a strict 2 hour time limit.
>>108893855>ternary operator: of the form (condition) ? (value if true) : (value if false)>for loop: of the form for (initialization; loop-if-true-expression; execute-at-end-of-each-iteration-expression) { body }>idea: for loops can have one iteration, this can be done like...>idea: larger constant iteration loop counts can be represented by nested ternarys, maybe like this...etc, etc, etc, etc on your test
>>108893832>DijkstraI think he's a little bit crazy
>>108893876according to the test, you talk like a fag and your shit's all retarded. its cool though, my first wife was tarded and niw she's a pilot
>>108893871Reread all of your homework five times and just visualize grinding like a motherfucker for every greasy point, throwing vocab around, big O, optimization possibilities, literally meme your test like a Wayland vs XLibre or C vs Rust vs Python or/g/y except it's you with pen and paper meming your homework back onto a paper book instead of onto basketweaving forums
>>108893892Exactly, you want this:>you talk like a fag and your shit's all retarded. its cool though: B
which website is better leetcode or codewars for learning and getting better?
>>108893903Learning what?
>>108893832>Dijkstra famously said that software engineers should study for 5 years straight BEFORE THEY ARE EVEN ALLOWED TO WRITE A SINGLE LINE OF CODE on a computerAnd he was wrong. Don't take my word for it, ask Donald Knuth:>But that’s not the way he learned either. He said a lot of really great things and inspirational things, but he’s not always right. Neither am I, but my take on it is this: Take a scientist in any field. The scientist gets older and says, “Oh, yes, some of the things that I’ve been doing have a really great payoff and other things, I’m not using anymore. I’m not going to have my students waste time on the stuff that doesn’t make giant steps. I’m not going to talk about low-level stuff at all. These theoretical concepts are really so powerful—that’s the whole story. Forget about how I got to this point.”>I think that’s a fundamental error made by scientists in every field. They don’t realize that when you’re learning something you’ve got to see something at all levels. You’ve got to see the floor before you build the ceiling. That all goes into the brain and gets shoved down to the point where the older people forget that they needed it.
>>108893915
>>108893849>he marked me down for using ternary operators instead of loops because "it was not on the assigned syllabus"If your solution worked regardless, the professor is a massive faggot. Many such cases. Sad!
>>108893899youve probably seen some one-iteration loops inside some macros and thats why you think such retardation is acceptable. that particular construct is a consequence of C preprocessor syntax rules and people trying to squeeze performance out of compilers 30 years ago: its a poor man's inlining. these days compilers can make that decision for you, or there is a pragma.youre being retarded. not creative, not clever, not revolutionary, only retarded. your prof was correct to dock you those points.
>>108893832Apples to oranges. In his days shit was on punch cards on time-share, and it made no sense to allow people to waste everyone's time on shitty programs that won't even run.That said, we place way too much attention on writing code over preparing to write code. Spend an hour making a diagram and planning the task and you can write a 1k line program top to bottom with 0 interruption and not make a single mistake requiring any testing. The program will be entirely bugfree at the end. It will take you max 10 minutes to write. I have done that several times after testing this method the first time and being blown away. It is far faster and more efficient than going straight to writing code yet produces significantly higher quality code.
>>108893945bruh no one teaching today has held a punch card
>>108893949Congrats on being illiterate I guess.
>>108893931Nigger, anonbro has a test on paper, kids these days aren't used to that shit, he's freaking out a little and needs to visualize how this goes. I do not give a fuck about for loops or ternarys or macros, or whatever your gay problem is, I'm trying to sketch out how to respond to gay questions if they pop up, using your gay example. When shit starts getting gay, the good get gayer. Anon is perfectly capable of getting as gay as necessary.
Also you know shits is bad when my professor suggested to use DevC++ of ofcourse other zoomies asked "what about VSCode/JetBrains?" And professor said he had no fucking clue around them.Anyways I wrote my code like any sane person does, using the nano editor.Wish I had more time to learn using emacs but such is life.
>>108893953yes he has made that much perfectly clear
>>108893767drugs
i like this time of the year. i get to laugh at lazy retards crying on 4chan for slacking off prior to the final exams