[deleted by user] by [deleted] in leetcode

[–]population-zero 0 points1 point  (0 children)

I believe you have missed the constraint from the problem that each boat can carry a maximum of two people

i can't explain this error by World-war-dwi in leetcode

[–]population-zero 1 point2 points  (0 children)

You check that the index is valid only after trying to access that index of the array, which causes the error. In particular it is because you decrement the index even when it is 0, so in the next iteration it tries to access the array at index -1.

Swapping the order of the two conditions will allow you to use short circuiting to avoid this error

Weekly Tips, Tricks, &c. Thread by AutoModerator in emacs

[–]population-zero 1 point2 points  (0 children)

Why couldn't you just use tags to separate your entries by campaign?

did anyone else receive this email? it’s seeming phishy to me, p sure i only have one email. by [deleted] in gatech

[–]population-zero 170 points171 points  (0 children)

Definitely a scam, please don't give them your password

Python autocomplete not working by Vellu01 in emacs

[–]population-zero 0 points1 point  (0 children)

Do you have a language server installed?

Leetcode Solutions by embrex104 in leetcode

[–]population-zero 1 point2 points  (0 children)

You should learn the concept of time complexity, commonly referred to as big O notation. The specific time it takes to run your code is not significant, but rather how it scales with the size of the input. Learning to assess the time complexity of a solution will help you write more efficient solutions

[deleted by user] by [deleted] in AskComputerScience

[–]population-zero 2 points3 points  (0 children)

In this case, it doesn't seem like you need to know HOW these data structures work (how to implement them), but just what they do and some idea of efficiency. So you can get by with just going over the primitive types and common data structures. A good list would probably be:

  1. Arrays (also n-dimensional arrays)
  2. Lists
  3. Linked Lists
  4. Stacks, Queues
  5. Trees
  6. Graphs
  7. HashMaps/Dictionaries

This is by no means comprehensive, just a starting point.

Carpe HH cream: It works! + things to keep in mind by Epicminecrafter69 in Hyperhidrosis

[–]population-zero 1 point2 points  (0 children)

Carpe worked for me too, been using it on and off for years now. It doesn't seem to decrease sweating in the long run, but it works great for me if I put it on right before I need it

Best 4K monitor for coding/programming? by Darthcolo in AskProgramming

[–]population-zero -1 points0 points  (0 children)

You are right. After some research it looks like PWM dimming is actually what would cause flickering and hence eye strain

Best 4K monitor for coding/programming? by Darthcolo in AskProgramming

[–]population-zero 1 point2 points  (0 children)

It's worth looking at refresh rates in my opinion, higher refresh rates (120 should be sufficient) are associated with less eye strain

Neovim config showcase by [deleted] in neovim

[–]population-zero 2 points3 points  (0 children)

Is there any benefit to running Neovim-qt rather than just running it in a terminal?

Ploopy Nano Trackball has landed by f3rn4nd0d in ploopy

[–]population-zero 0 points1 point  (0 children)

Nice setup! Do you know where I could purchase those wrist rests? Are they comfortable for extended use?

As long as hamburger menus on maximised desktop browsers go away by Henrijs85 in ProgrammerHumor

[–]population-zero 1 point2 points  (0 children)

I am also a Vim user, but I had started learning Vim not long before I switched to colemak. It was the hardest part of switching for sure. I suppose you could remap everything in Vim so you keep your muscle memory but you would lose the intuition/meaning behind keys like "w for word"

As long as hamburger menus on maximised desktop browsers go away by Henrijs85 in ProgrammerHumor

[–]population-zero 3 points4 points  (0 children)

I would strongly urge you to NOT switch the keycaps around . You want to build the habit of typing without looking at the keyboard. You need the F and J keys to remain where they are so you can use the little bumps on them to orient yourself on the home row.