2/19/25 Flashcards
“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.
“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.”
In binary search, what do we use mid for?
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
💚如何理解题目?
- 先看例子
- 画图
- 再读题目
❤️不会的题 如何学习解法?
- 答案复制粘贴
- 提交
- read code.
- don’t move on until i can understand it