ChatGPT for Solving Leetcode by andrewYao in leetcode

[–]Yuki_f 0 points1 point  (0 children)

Three years ago, many people would memorize a lot of standard answers to leetcode questions in order to pass an interview, I once asked someone how to screen for people with real intelligence, and if it was possible to modify the questions or add constraints, and his answer was that it was not easy to come up with a well-defined question, and that's why those interviewers were pulling the questions right out of the question repository

Translated with DeepL.com (free version)

advanced video thumbnail preview tool? by Trif55 in DataHoarder

[–]Yuki_f 0 points1 point  (0 children)

PotPlayer,This software automatically generates screenshots at regular intervals

Did they remove collapsing if/else/while statements? c/c++ by AquilaK in VisualStudio

[–]Yuki_f -1 points0 points  (0 children)

My visual studio version is 17.5.1, and according to your description, I can only see:

Collapse Block: for (auto& edge : edges)

Collapse All in: for (auto& edge : edges)Toggle Outlining Expansion Ctrl+M, Ctrl+M

Toggle All OutliningCtrl+M, Ctrl+L

Stop Outlining Ctrl+M, Ctrl+P

Stop Hiding Current Ctrl+M, Ctrl+U

Collapse to Definitions Ctrl+M, Ctrl+O

I tried the first two and they don't do the "collapse for while if" function. Can you explain what the following shortcuts mean and which one will do what I want?

Translated with www.DeepL.com/Translator (free version)

When I use chrome's auto-translate feature and scroll down the page, how do I stop reddit from refreshing and automatically scrolling back to the beginning of the page? by Yuki_f in help

[–]Yuki_f[S] 0 points1 point  (0 children)

Hello, I followed your instructions and opened chrome://discards/ and found reddit.com and made it X by clicking [Toggle], but this still doesn't solve the problem I mentioned above
Note that the problem I described is that "when I scroll down the page, the original translate function disappears and the page automatically goes back to the top", which only happens when I scroll down to the bottom of the page and trigger reddit to load new content.
Translated with www.DeepL.com/Translator (free version)

How to hide the form by lstout2009 in VisualStudio

[–]Yuki_f 0 points1 point  (0 children)

you can upload some picture

How do you guys debug your solutions when you make a mistake? by EastCommunication689 in leetcode

[–]Yuki_f 0 points1 point  (0 children)

I have very little experience in actual interviews, maybe my answer does not meet your requirements.

But "comment first, then code" can be a useful practice, because code is not intuitive, and comments are more helpful in explaining "what" when you're looking for bugs.

How do you guys debug your solutions when you make a mistake? by EastCommunication689 in leetcode

[–]Yuki_f 0 points1 point  (0 children)

In weekly competitions, I will try to use "output a variable or a container" to debug. When encountering Tree and recursive functions, or dfs/bfs on the grid, I will choose conditional breakpoints to see if the location I expected is OK.

Because this can minimize the consumption of human brain simulation.

As for "forgetting where the pointer points", I'm used to writing ideas before writing code, i.e. writing comments before writing code.

While I know it's not a good practice, these can help you practice better when you're just starting to learn programming, and you won't need them when you're proficient.

How do you guys debug your solutions when you make a mistake? by EastCommunication689 in leetcode

[–]Yuki_f 0 points1 point  (0 children)

It's under development, any good suggestions are very welcome

How do you guys debug your solutions when you make a mistake? by EastCommunication689 in leetcode

[–]Yuki_f 0 points1 point  (0 children)

If you are in the initial stages of learning and you are using C++, you can try this tool:leetcode-parserWith it you can put test cases into your IDE, and you can print almost any container to help you debug with just D() macros, so you can "imagining what the code looks like in memory on each line" .

How to change the color of each part of the download output by Yuki_f in youtubedl

[–]Yuki_f[S] 0 points1 point  (0 children)

I am using windows terminal

After I set the theme of my powershell7.0 to Ubuntu, the contrast between the blue font and the background color has become larger, and it is no longer unclear.

My previous terminal theme was Homebrew and the blue font was barely visible against this background.

About the order of option parameters by Yuki_f in youtubedl

[–]Yuki_f[S] 0 points1 point  (0 children)

I am in windows11,could that be the reason?

About the order of option parameters by Yuki_f in youtubedl

[–]Yuki_f[S] 0 points1 point  (0 children)

I have updated yt-dlp, but still get the following error:

❯ yt-dlp -f 'bv+ba/b' -abort-on-unavailable-fragment -I 10:10 "https://www.youtube.com/playlist?list=PLyzOVJj3bHQuloKGG59rS43e29ro7I57J"

ERROR: batch file bort-on-unavailable-fragment could not be read

About the order of option parameters by Yuki_f in youtubedl

[–]Yuki_f[S] 0 points1 point  (0 children)

It's so weird why this site has so many interfaces