search
HomeWeb Front-endJS Tutorialdays of Javascript no LeetCode

In the previous text, I started using the Hacker Rank website to practice algorithms and I mentioned it to my boyfriend. He suggested trying LeetCode because I wouldn't need to use Node.js and could just focus on the algorithm challenge. I'm already on the second day using LeetCode.

Reinforcement: these texts within series, like this one and the one from System Design, are me swapping twitter/x and bluesky for dev.to. That said, I'm going to say it in a light-hearted, "bar table" way. Please take this into consideration hahaha

...

I confess that I always had the impression that LeetCode was for very intelligent people and that it definitely wasn't for me, the "ignorant brucutu" thought that most of us, devs, have with the things we choose not to know and just judge hahaha

I say this because it was a judgment I made based on what I saw from my colleagues on Twitter, so much so that I never saw any female colleague talking about LeetCode - and we know that "sometimes" men like to do the equivalent to "who has the biggest shit" using salaries, hobbies like coffee, the company he works for and even some "intellectual demonstrations" such as super complex algorithm challenges.

I know that practicing algorithm challenges helps in job interviews, but, as a developer working in Brazil, I've never needed to take an algorithm test and discuss the complexity, etc. - I've never tested for companies that require these things and I confess that I got angry because of my social network colleagues wearing a monocle and twirling the tip of their mustache every time they talked about where they worked and about algorithm testing hahaha

But hey, if you also created these trials, I'm here to tell you that solving algorithm challenges is super cool, it's not something for semi-gods and it won't turn you into a monocle person - unless you already have a tendency the "sh*t measurement", but then it's not the platform's fault.

What is LeetCode like?

Yes, there are super difficult challenges. But that's not the entire platform. In fact, even if you are new to Javascript (you already need to know how to program, otherwise you won't be able to make the most of it and you will get frustrated), LeetCode is for you.

Or, if you are already a full-time or senior dev but don't have the time or interest in spending hours and hours on things you don't even use at work, know that in 10 minutes you can solve a challenge in LeetCode and you will learn cool stuff.

My suggestion is to start with "30 days of Javascript" on the platform. The only point is that you need to know English or at least translate what you don't understand (I think there is a direct translation of the page in the browser too, but I haven't tested it). But apart from this point about the language, the challenges of this study plan are quite possible to be completed in a few minutes.

Tela inicial do plano de estudos de 30 dias de javascript
The face of the study plan and the two exercises I have already solved

Even if you are already full or senior, but are not used to algorithm challenges, I also suggest that you start with this study plan. Yes, you will find things easy but you will see that you have the opportunity to learn mainly to think about the structure of how to solve a problem and to get used to having 3 or 4 ways of solving the same problem - and knowing the reason for each choice .

O painel de desafio do LeetCode

The challenge is described in the "description" tab and it's interesting to read everything (I went with "ah, it's easy" I didn't read everything and I did it wrong the first time haha ​​Ah, the market creates a lot of bad habits in us) so as not to do neither more nor less than what was actually requested.

But my favorite part is the "editorial" tab, which is the most valuable thing in LeetCode, in my opinion:

Aba de editorial, com explicações sobre o exercicio

Here, you will not only understand the purpose of the test but learn about the concept itself and wow, talking about closures in Javascript makes me emotional. And I liked it even more that this part brought 4 possible ways to solve the challenge, in order of performance and simplicity, in addition to bringing super interesting content by comparing classes in Javascript (which are not real classes, like in Java, because the constructor is a function) with Closures.

A small parenthesis to talk about closures

Closure is a very powerful and interesting feature, however, it is rarely used because people always say that it is "not necessary", that it is "dangerous", that it is "not performant" but in fact it is because we end up seeing a lot of market projects using strictly object-oriented JavaScript, which "doesn't complicate".

I have no objection to using an object-oriented paradigm with JavaScript, the language even supports this behavior, thousands of companies use it this way and it is practical because it is more familiar to those who come from Java or C#. However, know that there is a lot of interesting behavior in JavaScript that we fail to take advantage of because we end up using it as Java with a simpler syntax - and then comes the complaints about comparing completely different things.

But I'll talk about this in a serious article that I'll publish next week, "Idiomatic Javascript". Back to the topic:

Runtime Meter

o medidor de runtime do leetcode

After submitting your test (and it's really cool that there are test cases to ensure that you are meeting the requested scenario) you will see how performant your solution was and how many other people also developed solutions in the approximate time of execution that yours took to be executed. This is really cool because you can look at the other quickest solutions and expand your repertoire of different ways of solving the same problem.

Concluding...

To repeat: LeetCode is not for geniuses, it is for anyone who works with programming and wants to learn more. It's a cool platform to study even if you don't have ambitions to sign up for selection processes that use LeetCode challenges, and it works well whether you're a junior or a tired and busy senior who doesn't have time for anything. Yes, you have 10 minutes haha ​​Even if it’s just to get to know it and see that it’s not something out of your reality.

I'm not gaining absolutely anything to recommend this here and I don't even want to, I'm saying it because it was something that I really found advantageous. So, give it a try and get to know 30 days of Javascript!

The above is the detailed content of days of Javascript no LeetCode. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
JavaScript in Action: Real-World Examples and ProjectsJavaScript in Action: Real-World Examples and ProjectsApr 19, 2025 am 12:13 AM

JavaScript's application in the real world includes front-end and back-end development. 1) Display front-end applications by building a TODO list application, involving DOM operations and event processing. 2) Build RESTfulAPI through Node.js and Express to demonstrate back-end applications.

JavaScript and the Web: Core Functionality and Use CasesJavaScript and the Web: Core Functionality and Use CasesApr 18, 2025 am 12:19 AM

The main uses of JavaScript in web development include client interaction, form verification and asynchronous communication. 1) Dynamic content update and user interaction through DOM operations; 2) Client verification is carried out before the user submits data to improve the user experience; 3) Refreshless communication with the server is achieved through AJAX technology.

Understanding the JavaScript Engine: Implementation DetailsUnderstanding the JavaScript Engine: Implementation DetailsApr 17, 2025 am 12:05 AM

Understanding how JavaScript engine works internally is important to developers because it helps write more efficient code and understand performance bottlenecks and optimization strategies. 1) The engine's workflow includes three stages: parsing, compiling and execution; 2) During the execution process, the engine will perform dynamic optimization, such as inline cache and hidden classes; 3) Best practices include avoiding global variables, optimizing loops, using const and lets, and avoiding excessive use of closures.

Python vs. JavaScript: The Learning Curve and Ease of UsePython vs. JavaScript: The Learning Curve and Ease of UseApr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

Python vs. JavaScript: Community, Libraries, and ResourcesPython vs. JavaScript: Community, Libraries, and ResourcesApr 15, 2025 am 12:16 AM

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

From C/C   to JavaScript: How It All WorksFrom C/C to JavaScript: How It All WorksApr 14, 2025 am 12:05 AM

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

JavaScript Engines: Comparing ImplementationsJavaScript Engines: Comparing ImplementationsApr 13, 2025 am 12:05 AM

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

Beyond the Browser: JavaScript in the Real WorldBeyond the Browser: JavaScript in the Real WorldApr 12, 2025 am 12:06 AM

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment