go to the list of problems and sort them by the highest acceptance rate. you'll find the objectively easier questions there. the easy/medium tags are not as accurate Answer from smokessprite on reddit.com
🌐
LeetCode
leetcode.com β€Ί problems β€Ί duplicate-zeros β€Ί solutions β€Ί 312751 β€Ί java-from-a-beginner-programmer
Duplicate Zeros - LeetCode
Duplicate Zeros - Given a fixed-length integer array arr, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond the length of the original array are not written.
🌐
LeetCode
leetcode.com β€Ί problem-list β€Ί prshgx6i
Super Easy Problems - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
Discussions

What is the easiest leetcode question?
go to the list of problems and sort them by the highest acceptance rate. you'll find the objectively easier questions there. the easy/medium tags are not as accurate More on reddit.com
🌐 r/leetcode
20
14
April 7, 2024
What should i learn in Java to be able to solve on leetcode?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full - best also formatted as code block You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit/markdown editor: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/learnjava
11
1
January 23, 2024
How to work up to Leetcode easy questions?
I strongly advise against learning Algo+DS or technology/language without reading up some theory first. As for algos, using "combat mode" trying to brute force the problems will only worsen the situation. You're not gonna know what to do and frustration will start to settle in. Learning technology by "diving straight in" often leads to using it completely against the intended purpose. Simple example, I've seen junior programers comparing Java strings using equality operator (==) instead of equals() method. When I asked why they do it this way, it turns out they haven't learned the 'equals' thing yet. If you try to learn a complex framework that way, things can go off the rails very quickly. A lot of those algorithm problems are daunting to you because you don't have enough exposure to them yet. Read Algo & DS Book, I recommend Algorithm Design Manual, it isn't as "mathy" as the CLRS. Google it, second link ;) Work through it, even if you won't understand everything, at the very least you're gonna develop anchor points in your mind that you can refer to later. You're gonna see a problem and realize "hmm... I think I saw similar problem in the section about bitwise operations". I'm not fond of youtube tutorials, especially if I intend to study a complicated subject. I want to jump straight in, instead of having to listen to drivel like "HEY GUISE IT'S STEVE "GoFuckYourself1337" SUBSCRIBE TO MY CHANNEL. WELCOME TO ANOTHER VIDEO TUTORIAL. TODAY I'M GONNA TALK FOR HALF AN HOUR COVERING MAYBE A ONE FUCKING PAGE OF DECENT ALGORITHM BOOK. BTW I DIVIDED THIS WHOLE TUTORIAL INTO ONE MINUTE SEGMENTS, EFFECTIVELY DESTROYING YOUR FOCUS AND FLOW. I HOPE YOU'RE ENJOYING WASTING YOUR TIME! YOU LIKED THIS TUTORIAL? DON'T FORGET TO FOLLOW ME ON REDDIT, TWITTER, INSTAGRAM, FACEBOOK AND MEDIUM. DON'T FORGET TO BUY T-SHIRTS WITH MY NEW MOTTO: "COLLEGE IS LIKE A TOILET, YOU GO THERE ONLY CUZ YOU FUCKIN' HAVE TO". Maybe I'm exaggerating a little, but I think video tutorials are too vague and general. More on reddit.com
🌐 r/cscareerquestions
60
153
February 23, 2016
How to approach Array problems on Leetcode
I would just keep doing questions, try to train yourself into thinking more efficiently. Coming up with things like multiple pointers and sliding windows aren't out of the realm of possibility. So as you learn some, make sure you understand them, then see if they fit future problems. If they don't then use them as inspiration for coming up with your own algorithms, you may stumble upon ones that exist already. This way you train your brain to think it out instead of recall previous algorithms. That is ultimately the point, but never seems to actually work that way. There are some bread and butter algorithms you should know going in. Breadth first search, depth first search, sliding window type is good to know as you have seen, as well as unify-find which you will come across less often but is a great solution for when you do. If you get stuck, think of the brute force method, the one that would take the longest time but work. Then see if you can figure a way to make it more efficient, what items can you immediately discard from searching? Could spending O time for a sort help in the long run? More on reddit.com
🌐 r/javahelp
6
1
June 5, 2019
🌐
LeetCode
leetcode.com β€Ί problemset
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
LeetCode
leetcode.com β€Ί problem-list β€Ί mmza0utr
JAVA QUESTIONS 50 - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
LeetCode
leetcode.com β€Ί problems β€Ί two-sum β€Ί solutions β€Ί 1023085 β€Ί easy-java-solution-with-youtube-tutorial-for-beginners
Two Sum - LeetCode
Two Sum - Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice.
🌐
LeetCode
leetcode.com β€Ί problemset
LeetCode Java Problems
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
Find elsewhere
🌐
LeetCode
leetcode.com β€Ί discuss β€Ί post β€Ί 448024 β€Ί topic-wise-problems-for-beginners
Topic wise problems for Beginners - Discuss - LeetCode
December 9, 2019 - Finally, here is a list of problems that I solved topic wise and wasn't able to solve them in the first chance. I used solutions / discuss to check the approach of solving problems. Few are some which are worth revisiting. Finally, I have solved around 137 problems, so that should suffice for a beginner to onboard with the process of leetcode grind.
🌐
LeetCode
leetcode.com β€Ί explore β€Ί interview β€Ί card β€Ί top-interview-questions-easy
Explore - LeetCode
LeetCode Explore is the best place for everyone to start practicing and learning on LeetCode. No matter if you are a beginner or a master, there are always new topics waiting for you to explore.
🌐
GitHub
github.com β€Ί fluency03 β€Ί leetcode-java
GitHub - fluency03/leetcode-java: πŸŽ“πŸŽ“πŸŽ“ Leetcode solution in Java - 536/921 Solved. https://leetcode.com/problemset/all/
πŸŽ“πŸŽ“πŸŽ“ Leetcode solution in Java - 536/921 Solved. https://leetcode.com/problemset/all/ - fluency03/leetcode-java
Starred by 231 users
Forked by 116 users
Languages Β  Java
🌐
LeetCode
leetcode.com β€Ί discuss β€Ί interview-question β€Ί 804201 β€Ί java-coding-interview-questions
Java coding interview questions - Discuss
August 21, 2020 - Write a java program to accept a variable x. x can be any number from 1 to 230-1. Generate a file with x number of lines and each line consist of a string th
🌐
Medium
medium.com β€Ί @koheiarai94 β€Ί 60-leetcode-questions-to-prepare-for-coding-interview-8abbb6af589e
60 LeetCode problems to solve for coding interview | by Kohei Arai | Medium
April 30, 2019 - If you can solve them quickly, you would have a high chance to pass coding interview. Problems are either Easy or Medium. I put these questions in Google Spreadsheet.
🌐
GitHub
github.com β€Ί javadev β€Ί LeetCode-in-Java
GitHub - javadev/LeetCode-in-Java: Java-based LeetCode algorithm problem solutions, regularly updated.
Java-based LeetCode algorithm problem solutions, regularly updated. - javadev/LeetCode-in-Java
Starred by 208 users
Forked by 104 users
Languages Β  Java
🌐
LeetCode
leetcode.com β€Ί problem-list β€Ί array
Array - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
Medium
medium.com β€Ί @abhishek.talakeriv β€Ί java-leetcode-solutions-part-1-efb531dbd72a
Java LeetCode Solutions Part 1. Commonly asked interview questions. | by Abhishek vt | Medium
November 4, 2024 - We will add the elements into Map and then check the target element by substracting with the keys. if the key found then return the array with indexes. public static int[] twoSum(int[] nums, int target) { Map<Integer, Integer> map = new ...
🌐
Medium
diptendud.medium.com β€Ί most-asked-leetcode-interview-questions-java-7a38f8fd7b5c
Most Asked leetcode interview questions β€” JAVA | by Diptendu Das | Medium
October 26, 2025 - https://leetcode.com/problems/two-sum/description/ ... import java.util.HashMap; public class TwoSum { public int[] twoSum(int[] nums, int target) { HashMap<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < nums.length; i++) { int complement = target - nums[i]; if (map.containsKey(complement)) { return new int[] { map.get(complement), i }; } map.put(nums[i], i); } return new int[] {}; } }