+ 3

Leecode?

I want to practice my programming skills on LeetCode and solve more challenges. Can anyone suggest a step-by-step approach? Also, how valuable is a strong LeetCode profile for getting jobs?

29th Oct 2024, 3:23 PM
Hamid Ahmad Amini
Hamid Ahmad Amini - avatar
3 odpowiedzi
+ 4
LeetCode.com is an essential tool for programmers to practice for potential interview questions. They have a number of "paths" to prepare for an interview. When you apply for a programming job, they are likely to give you a technical interview. Most technical interviews will ask you to write some code to solve a particular problem. Sometimes it's a simple test for junior levels or more complex for senior positions. If you went into an interview today and they said - write me a program to create a binary tree. Or write me code to sort an array of objects? Would you know how to approach it? Would your code be efficient? SoloLearn teaches basic syntax for programming. Leetcode teaches algorythms. Go to leetcode.com and view the list of problems. Filter to only see EASY problems. You can then choose your desired language and solve the problem. You can actually develop your code in your own IDE and then just paste it into leeetcode if you like. That's what I do. Leetcode will then assess the efficiency of your solution by measuring compute time. Keep on reworking your solution to make it as fast as possible. Once you've done all you can, you can then view other solutions to see what other people have done. Try to learn from their code. Once you have gone through a dozen or more problems, look at leetcode's study plans. Try their interview preparation plan. Some things are fre, some are not. But there is a ton of resources there. The challenge with leetcode is that some of the problems and the technical explanations are really advanced and hard to follow. An advanced algorithm is based on an advanced theory. Remember, it's not enough to just solve the problem. You need to solve it as efficiently as possible. The hardest stuff is for people who might be writing code with very high transaction rates, so compute time is critical. First we learn to walk, then run, then race. So start with the easy stuff and go from there.
29th Oct 2024, 3:34 PM
Jerry Hobby
Jerry Hobby - avatar
+ 5
Showcasing your own code projects is more indicative of your skills than having "solved x problems" on leetcode.
29th Oct 2024, 3:37 PM
Lisa
Lisa - avatar
+ 1
Thanks for helping, MS.Lisa and Mr.Jerry Hobby
29th Oct 2024, 6:12 PM
Hamid Ahmad Amini
Hamid Ahmad Amini - avatar