2/19/25 Flashcards

1
Q

“Ahora puedo resolver con facilidad todos los problemas de nivel medio en LeetCode. Recuerdo aquellos días en los que luchaba con ellos, y estoy muy orgulloso de lo lejos que he llegado. Hoy, a solo 11 días del próximo concurso, sé que volveré a resolver dos problemas, tal como lo he hecho todas las veces anteriores. Cada detalle de los patrones comunes se ha convertido en parte de mi memoria muscular, y puedo usarlos de manera creativa. Estudiar algoritmos también ha influido en otras áreas de mi vida; ahora aplico el pensamiento algorítmico para mejorar mi eficiencia en distintos aspectos. Se siente como magia.

A

“I can now solve all medium-level LeetCode questions with ease. I remember the days when I used to struggle, and I am so proud of how far I’ve come. Today, with just 11 days until the next contest, I know I will solve two problems again—just as I have done every other time. Every detail of common patterns has become part of my muscle memory, and I can use them creatively. Studying algorithms has also influenced other areas of my life; I now apply algorithmic thinking to improve my efficiency in different aspects. It feels like magic.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In binary search, what do we use mid for?

A

mid is to be compare to the target value

or mid is the input to a function, the output of the function will be compare to the target value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

💚如何理解题目?

A
  1. 先看例子
  2. 画图
  3. 再读题目
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

❤️不会的题 如何学习解法?

A
  1. 答案复制粘贴
  2. 提交
  3. read code.
  4. don’t move on until i can understand it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly