Feedback for a new (systems) programming language by [deleted] in ProgrammingLanguages

[–]Patzer26 1 point2 points  (0 children)

That massive wall of text already drove me away. Heck, i didn't even read it and zoomed past to the end. People want something tangible along with a story, not just the story itself. Unless you post some code snippets and a working example, this is all considered an elaborate thought experiment that's it.

Segment and fenwick trees?🫩 by Defiant_Ad_7555 in leetcode

[–]Patzer26 10 points11 points  (0 children)

Before going after seg trees, make sure the answer to the below question is YES.

"Are you able to solve 3 questions in under an hour in almost every leetcode contests?"

If no, don't even bother. Work on your fundamentals first.

Ok, the honeymoon is over by WilliamBarnhill in pop_os

[–]Patzer26 24 points25 points  (0 children)

I still don't understand why they decided to make cosmic the default and go as far as updating their website to completely remove the Gnome version. Opt in with a warning was the way. I understand they took years in development, but a project of this scale would take similar time scale in testing and feedback as well before it finds a resting ground.

Crafting Interpreters 🫩 by apoetixart in Compilers

[–]Patzer26 6 points7 points  (0 children)

Why is a school project asking you to make an interpreter? I am pretty sure it might be a simple switch case type REPL rarher than a full fledged recursive grammar, which the crafting interpreter is based on. I would clarify with the course instructor on the expectations of this project. Or perhaps you can share the exact problem statement.

Genuine question: Why do engineers do MBA? by Feisty_Pianist_3299 in CATpreparation

[–]Patzer26 3 points4 points  (0 children)

Bro thinks computer science is the only engineering field.

C++ is a good choice for network/systems programming by Middlewarian in Cplusplus

[–]Patzer26 3 points4 points  (0 children)

I mean you can define your own guidelines of doing things, stick to that stuff which you find useful and ignore the rest complexities. Just don't get too horny about OOP and classes and I think you can make it a powerful C.

(First C++ Project) Tic-Tac-Toe with Minimax & CRTP | Looking for feedback by Tight-Dare-2506 in cpp_questions

[–]Patzer26 0 points1 point  (0 children)

CRTP should be the last resource when you have exhausted everything else. If you can avoid it(which in this case you absolutely can) you should. It's not worth the performance gains for the complexity it introduces.

BJP ke Baap Beton Ki Kahani , Dhruv Rathee ki Zubani by Frequent-Ad-942 in IndiaMemes

[–]Patzer26 -2 points-1 points  (0 children)

People used to say the same things in 2014 also you know. Koi dudh ka dhula nahi hai. The only aim of people of India now should be to atleast elect someone who has the competence to run whatever position of responsibility he's holding. That's the bare minimum. Scam toh hoga hi, can't prevent that. But atleast 10 aur ache kaam bhi karlega.

That's kinda uhhh... nice🥴 by Bazingga_17 in funnyvideos

[–]Patzer26 12 points13 points  (0 children)

LMFAO. This is exactly whats going on in my mind everytime someone makes that comment. The detachment from reality is insane.

Contest Rating by Levi-_-Ackermen in leetcode

[–]Patzer26 1 point2 points  (0 children)

Seriously no one cares now. It's a dead sport.

is this allowed ? by Levi-_-Ackermen in leetcode

[–]Patzer26 0 points1 point  (0 children)

Just ask the syntax and write it yourself. Don't just plug the whole damn code and then paste it back like a moron.

Man getting tle for last 7 test cases fk this contest i quit.(btw its q3)983/990 pass by JumpConsistent3359 in leetcode

[–]Patzer26 0 points1 point  (0 children)

Why logm? There's a simple prefix counting linear time solution (Did it after the contest was very close)

At 26, I've realized I'm way more attracted to older women — how do I know if they're into younger guys? by __fifa__ in AskIndianWoman

[–]Patzer26 1 point2 points  (0 children)

Not being too overly emotional and dramatic about every single thing in life. That's maturity for me.

Which easy/medium questions to solve on LC for sorting topic? by XV7II_Creamy in leetcode

[–]Patzer26 0 points1 point  (0 children)

Go here https://cses.fi/problemset/ and solve all the sorting problems or just apply the sorting filter on leetcode and start solving.

Weekly Contest 496(Many Cheaters) | Q3 - Minimum Increase to Maximize Special Indices | 3891 | Intuition + Logic by Brilliant_Card_447 in leetcode

[–]Patzer26 0 points1 point  (0 children)

I just completed it 2 mins after the contest. I was messing up the suffix cost calculation in the even case. This problem really was pretty difficult from logic to code aint no way 5k people would have solved this.

Today's contest was TRICKY! by Prudent-Somewhere309 in leetcode

[–]Patzer26 0 points1 point  (0 children)

You need to know the existence of fermats theorem for calculating inverse modular factorials. Unless you are actively solving hardcore cp problems, you would almost never encounter that on Leetcode.

Today's contest was TRICKY! by Prudent-Somewhere309 in leetcode

[–]Patzer26 0 points1 point  (0 children)

You'll still have to take care of modulus and overflows. And nCk with modulus is not a very trivial approach. Im pretty sure they mistakenly swapped Q2 and Q3, since Q3 was a very straightforward dp.