🌐
LeetCode
leetcode.com › discuss › study-guide › 5383714 › Java-Cheat-Sheet
Java Cheat Sheet - Discuss - LeetCode
June 28, 2024 - Here's a Java cheat sheet covering key concepts, data types, operators, data structures, and other useful information. This guide should help you with Java bas
Discussions

Leetcode Patterns/Techniques Cheat Sheet
Algo Monster has a flowchart There is also a list on seanprashad leetcode patterns If input array is sorted then Binary search Two pointers If asked for all permutations/subsets then Backtracking If given a tree then DFS BFS If given a graph then DFS BFS If given a linked list then Two pointers If recursion is banned then Stack If must solve in-place then Swap corresponding values Store one or more different values in the same pointer If asked for maximum/minimum subarray/subset/options then Dynamic programming If asked for top/least K items then Heap QuickSelect If asked for common strings then Map Trie Else Map/Set for O(1) time & O(n) space Sort input for O(nlogn) time and O(1) space More on reddit.com
🌐 r/leetcode
12
65
May 29, 2024
Java cheat sheet
it would be really cool if the code examples would be highlighted like in a ide with colors. greate job really helpful. More on reddit.com
🌐 r/learnjava
39
129
November 29, 2025
I created a curated list of LeetCode top 70 questions, with my own solutions in C++ (work in progress)
If I may ask, do they cover most type of problems under each topic? Or rather what was your thought process behind the selection? More on reddit.com
🌐 r/leetcode
3
29
May 3, 2021
Top Interview Questions List?

Mods can we sticky the Blind 75 onto the sidebar or maybe add a post on "where to begin with Leetcode if you're studying for interviews?"

More on reddit.com
🌐 r/leetcode
2
17
August 15, 2021
🌐
GitHub
github.com › alxkm › java-cheatsheet › blob › main › LeetcodeJava.md
java-cheatsheet/LeetcodeJava.md at main · alxkm/java-cheatsheet
Java cheatsheet: Array { Arrays.stream(givenArray).sum(); int minimumValue = Arrays.stream(givenArray).min().getAsInt(); int MaxmumValue = Arrays.stream(givenArray).max().getAsInt(); Collections.reverse(Arrays.asList(a)); Person maxByAge = Arrays.stream(persons).max(Comparator.comparing(Car::getAge)).orElseThrow(NoSuchElementException::new); // Arrays.fill(arr, -1) int[] arr = new int[5]; Arrays.fill(arr, -1); // Arrays.asList() List<String> fruitsList = Arrays.asList("apple", "banana", "orange"); // asList() java.util.List<String> list = Arrays.asList("apple", "banana", "orange"); // binarySe
Author   alxkm
🌐
Untitled Publication
veeblogs.hashnode.dev › java-cheat-sheet
Java Cheat Sheet - Untitled Publication - Hashnode
May 20, 2023 - That’s why I code the LeetCode problems in Java. Trust me, I’ve been down the frustrating rabbit hole of googling again and again for the syntax of the data structures. It’s no fun. That’s why I’m hooking you up with a concise cheat sheet for your day-to-day LeetCode problem-solving.
🌐
LeetCode
leetcode.com › discuss › general-discussion › 4694282 › Java-cheatsheet-for-the-most-commonly-used-data-structures-on-leetcode
Java cheatsheet for the most commonly used data structures on leetcode - Discuss - LeetCode
Java cheatsheet for the most commonly used data structures on leetcode · Emanuele Micheletti · 3842 · Feb 07, 2024 · JavaDSA · Inspired by this discussion I created a structured repo with all main java data structures and methods usefull for solving leetcodes.
🌐
PIRATE KING
piratekingdom.com › leetcode › cheat-sheet
LeetCode Cheat Sheet — PIRATE KING
String Concatenation - StringBuilder: O(n) (Java, C#, etc.) - String.join(): O(n) (Python)
🌐
LeetCode
leetcode.com › discuss › study-guide › 6180347 › Trie-Data-Structure-Cheat-Sheet-in-Java
Trie Data Structure Cheat Sheet in Java - Discuss - LeetCode
December 23, 2024 - This cheat sheet provides the basic structure, operations, and a full example to help you get started with implementing Tries in Java!
Find elsewhere
🌐
LeetCode
leetcode.com › discuss › study-guide › 6184512 › Graph-Cheat-Sheet-in-Java
Graph Cheat Sheet in Java - Discuss - LeetCode
December 25, 2024 - This cheat sheet covers the basic graph representation and common graph algorithms in Java.
🌐
LeetCode
leetcode.com › explore › interview › card › cheatsheets
LeetCode's Interview Crash Course
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.
🌐
Scribd
scribd.com › document › 637996672 › LeetCode-Java-cheat-sheet-for-interview
LeetCode Java Cheat Sheet For Interview | PDF | String (Computer Science) | Computer Science
LeetCode Java cheat sheet for interview - Free download as PDF File (.pdf), Text File (.txt) or read online for free. This document summarizes common operations for strings, collections, and other data types in Java. It covers converting between different data types like strings and primitives.
Rating: 5 ​ - ​ 1 votes
🌐
Medium
tusharghosh09006.medium.com › cheat-sheet-on-java-collection-709ca96edc9d
Cheat Sheet on Java Collection. Over the past eight months, I have… | by Tushar Ghosh | Medium
July 17, 2023 - // Basic initialization List<Integer> list= new ArrayList<>(); List<Integer> numbers= new ArrayList<Integer>(Arrays.asList(60, 25, 12)); // Or Integer[] arr = {2,3,4,4}; List<Integer> list = new ArrayList<Integer>(Arrays.asList(arr)); // Two dimentional list List<List<String>> countries = new ArrayList<>(); for(int i = 0; i < 100; i++){ countries.add(new ArrayList<>()); } // Or List<String>[] countries = new ArrayList[100]; for(int i = 0; i < 100; i++){ list[i] = new ArrayList<>(); } // Desfine the array size list.size(); // Add new item list.add(10); list.add(20); list.add(int index, E elemen
🌐
LeetCode
leetcode.com › discuss › post › 5578594 › Java-Cheatsheet
Java Cheatsheet - Discuss - LeetCode
Java Cheat Sheet ### 1. Basics - Hello World Program: java public class HelloWorld { public static void main(String[] args) { System
🌐
Scribd
scribd.com › document › 990568853 › Java-LeetCode-Codeforces-Cheat-Sheet
Java LeetCode Codeforces Cheat Sheet | PDF
This cheat sheet provides essential tips and techniques for competitive programming using Java, focusing on fast I/O methods and data structures. It covers key concepts such as arrays, strings, HashMap, two-pointer technique, sliding window, ...
🌐
Reddit
reddit.com › r/leetcode › leetcode patterns/techniques cheat sheet
r/leetcode on Reddit: Leetcode Patterns/Techniques Cheat Sheet
May 29, 2024 -

Says in title. I am looking for a comprehensive Google doc that goes over the common leetcode patterns to look for. I am looking for how to solve more basic patterns like sliding window or two pointer, but also explains how to solve more niche patterns/techniques prefix sum, line sweep, prims, etc. I often run into the problem of practicing a ton of problems then forgetting how to do some of the more niche ones. I want a sheet that I can review each topic every so often and it would be nice if the specified topic or pattern also had a list of associated problems.

🌐
Yuanjiwei
yuanjiwei.com › posts › java-cheatsheet-for-leetcode
Java Cheatsheet for LeetCode - Array - Jiwei Yuan's Blog
October 8, 2024 - String str = "Hello, World!"; int len = str.length(); // Get the length of a string char ch = str.charAt(0); // Get the character at index 0 String sub = str.substring(0, 5); // Get the substring from index 0 to 4 String[] parts = str.split(","); ...
🌐
GitHub
github.com › lichenma › LeetCode-CheatSheet
GitHub - lichenma/LeetCode-CheatSheet: Markdown Notes · GitHub
{leets, leetcode, leetc, leeds} | "leets" / \ "lee" "ts" midpoint "lee" in "leetcode" : yes "lee" in "leetc" : yes "lee" in "leeds" : yes | "leets" / \ "lee" "ts" | / \ "lee" "t" "s" midpoint "leet" in "leetcode" : yes "leet" in "leetc" : yes "leet" in "leeds" : no LCP= "lee"
Starred by 102 users
Forked by 35 users
🌐
LeetCode
leetcode.com › discuss › study-guide › 6149018 › Heap-and-Priority-Queue-in-Java-Cheat-Sheet
Heap and Priority Queue in Java Cheat Sheet - Discuss - LeetCode
December 15, 2024 - If you need a thread-safe version, consider using PriorityBlockingQueue from java.util.concurrent. PriorityQueue is not fixed in size; it grows dynamically as needed. Heap operations (add, remove) take (O(\log n)), but peek operation takes constant time (O(1)). This cheat sheet covers the basics of PriorityQueue and heap operations in Java.
🌐
Princeton CS
introcs.cs.princeton.edu › java › 11cheatsheet
Java Programming Cheatsheet
D. TOY Cheatsheet ... We summarize the most commonly used Java language features and APIs in the textbook.
🌐
DEV Community
dev.to › arpitrathore › java-cheat-sheet-for-leetcode-g86
Java Cheat sheet for leetcode - DEV Community
December 14, 2024 - Data Structures Basics 1. Arrays 2. Character 3. String and StringBuilder 4. List and...