GeezerVison is showing github.com — GitHub - darshangouda/leetcode-java-streams: 🚀 LeetCode algorithm and data structure solutions implemented entirely using modern Java Streams and functional programming paradigms.
Folders and files| Name | Name | Last commit message | Last commit date |
|---|
| | | | | | | | | | | | | | | | | | | | |
Repository files navigation
A curated collection of LeetCode algorithm and data structure solutions built with Java Streams and functional programming patterns.
Designed to explore clean code, immutability, and fluent APIs for technical interview prep and advanced Java problem-solving.
I have solved these LeetCode problems using Java Streams.
| LeetCode # |
Question Header |
Difficulty |
Stream Used |
| 4 |
Median of Two Sorted Arrays |
Medium |
sort, special |
| 9 |
Palindrome Number |
Easy |
special |
| 14 |
Longest Common Prefix |
Medium |
min, max, mapTo, special |
| 26 |
Remove Duplicates from Sorted Array |
Medium |
special |
| 27 |
Remove Element |
Easy |
special |
| 49 |
Group Anagrams |
Medium |
special |
| 136 |
Single Number |
Easy |
reduce, special |
| 137 |
Single Number II |
Easy |
special |
| 169 |
Majority Element |
Easy |
max, special |
| 190 |
Reverse Bits |
Easy |
special |
| 191 |
Number of 1 Bits |
Easy |
special |
| 231 |
Power of Two |
Easy |
special |
| 260 |
Single Number III |
Easy |
mapTo, special |
| 283 |
Move Zeroes |
Easy |
sort, mapTo, special |
| 326 |
Power of Three |
Easy |
special |
| 342 |
Power of Four |
Easy |
special |
| 347 |
Top K Frequent Elements |
Medium |
sort, mapTo, special |
| 349 |
Intersection of Two Arrays |
Easy |
special |
| 350 |
Intersection of Two Arrays II |
Easy |
special |
| 387 |
First Unique Character in a String |
Medium |
mapTo, special |
| 389 |
Find the Difference |
Medium |
reduce |
| 412 |
Fizz Buzz |
Easy |
mapTo, special |
| 434 |
Number of Segments in a String |
Medium |
special |
| 451 |
Sort Characters By Frequency |
Medium |
sort, mapTo, special |
| 459 |
Repeated Substring Pattern |
Medium |
special |
| 500 |
Keyboard Row |
Easy |
special |
| 520 |
Detect Capital |
Easy |
special |
| 541 |
Reverse String II |
Medium |
min, mapTo, special |
| 557 |
Reverse Words in a String III |
Medium |
special |
| 677 |
Map Sum Pairs |
Medium |
reduce |
| 692 |
Top K Frequent Words |
Medium |
sort, special |
| 709 |
To Lower Case |
Easy |
mapTo, special |
| 744 |
Find Smallest Letter Greater Than Target |
Medium |
min, special |
| 747 |
Largest Number At Least Twice of Others |
Medium |
max, special |
| 748 |
Shortest Completing Word |
Easy |
min, special |
| 771 |
Jewels and Stones |
Easy |
special |
| 791 |
Custom Sort String |
Medium |
sort, special |
| 804 |
Unique Morse Code Words |
Easy |
mapTo, special |
| 824 |
Goat Latin |
Easy |
mapTo, special |
| 896 |
Monotonic Array |
Easy |
mapTo, special |
| 905 |
Sort Array By Parity |
Medium |
sort, mapTo, special |
| 1002 |
Find Common Characters |
Medium |
min, reduce, special |
| 1122 |
Relative Sort Array |
Medium |
sort, mapTo, special |
| 1128 |
Number of Equivalent Domino Pairs |
Medium |
min, reduce, mapTo, special |
| 1207 |
Unique Number of Occurrences |
Easy |
max, special |
| 1295 |
Find Numbers with Even Number of Digits |
Medium |
special |
| 1309 |
Decrypt String from Alphabet to Integer Mapping |
Medium |
special |
| 1331 |
Rank Transform of an Array |
Easy |
sort, mapTo, special |
| 1337 |
The K Weakest Rows in a Matrix |
Medium |
sort, mapTo, special |
| 1346 |
Check If N and Its Double Exist |
Easy |
special |
| 1351 |
Count Negative Numbers in a Sorted Matrix |
Medium |
mapTo, special |
| 1356 |
Sort Integers by The Number of 1 Bits |
Medium |
sort, mapTo, special |
| 1403 |
Minimum Subsequence in Non-Increasing Order |
Easy |
special |
| 1422 |
Maximum Score After Splitting a String |
Medium |
max, mapTo, special |
| 1431 |
Kids With the Greatest Number of Candies |
Easy |
max, mapTo, special |
| 1450 |
Number of Students Doing Homework at a Given Time |
Easy |
special |
| 1455 |
Check If a Word Occurs As a Prefix of Any Word in a Sentence |
Medium |
special |
| 1460 |
Make Two Arrays Equal by Reversing Subarrays |
Easy |
special |
| 1480 |
Running Sum of 1d Array |
Medium |
special |
| 1486 |
XOR Operation in an Array |
Easy |
reduce, mapTo, special |
| 1491 |
Average Salary Excluding the Minimum and Maximum Salary |
Medium |
min, max, special |
| 1512 |
Number of Good Pairs |
Medium |
mapTo, special |
| 1550 |
Three Consecutive Odds |
Easy |
special |
| 1598 |
Crawler Log Folder |
Easy |
max, reduce, mapTo, special |
| 1624 |
Largest Substring Between Two Equal Characters |
Medium |
max |
| 1636 |
Sort Array by Increasing Frequency |
Medium |
sort, mapTo, special |
| 1748 |
Sum of Unique Elements |
Medium |
reduce, special |
| 1780 |
Check if Number is a Sum of Powers of Three |
Medium |
special |
| 1859 |
Sorting the Sentence |
Medium |
sort, special |
| 1897 |
Redistribute Characters to Make All Strings Equal |
Medium |
mapTo, special |
| 1903 |
Largest Odd Number in String |
Medium |
mapTo, special |
| 1929 |
Concatenation of Array |
Easy |
mapTo, special |
| 1935 |
Maximum Number of Words You Can Type |
Medium |
special |
| 1941 |
Check if All Characters Have Equal Number of Occurrences |
Easy |
special |
| 2006 |
Count Number of Pairs With Absolute Difference K |
Medium |
special |
| 2042 |
Check if Numbers Are Ascending in a Sentence |
Medium |
special |
| 2089 |
Find Target Indices After Sorting Array |
Medium |
special |
| 2099 |
Find Subsequence of Length K With the Largest Sum |
Medium |
sort, mapTo, special |
| 2124 |
Check if All A's Appears Before All B's |
Medium |
special |
| 2129 |
Capitalize the Title |
Medium |
special |
| 2138 |
Divide a String Into Groups of Size k |
Medium |
mapTo, special |
| 2161 |
Partition Array According to Given Pivot |
Medium |
sort, mapTo, special |
| 2176 |
Count Equal and Divisible Pairs in an Array |
Medium |
mapTo, special |
| 2185 |
Counting Words With a Given Prefix |
Medium |
special |
| 2191 |
Sort the Jumbled Numbers |
Medium |
sort, mapTo, special |
| 2215 |
Find the Difference of Two Arrays |
Medium |
special |
| 2248 |
Intersection of Multiple Arrays |
Medium |
sort, special |
| 2255 |
Count Prefixes of a Given String |
Medium |
special |
| 2284 |
Sender With Largest Word Count |
Medium |
max, special |
| 2351 |
First Letter to Appear Twice |
Medium |
sort, min, special |
| 2363 |
Merge Similar Items |
Medium |
special |
| 2395 |
Find Subarrays With Equal Sum |
Medium |
special |
| 2404 |
Most Frequent Even Element |
Medium |
max, special |
| 2418 |
Sort the People |
Medium |
sort, special |
| 2455 |
Average Value of Even Numbers That Are Divisible by Three |
Medium |
special |
| 2529 |
Maximum Count of Positive Integer and Negative Integer |
Medium |
max, special |
| 2540 |
Minimum Common Value |
Medium |
min, special |
| 2545 |
Sort the Students by Their Kth Score |
Medium |
sort, special |
| 2595 |
Number of Even and Odd Bits |
Medium |
special |
| 2644 |
Find the Maximum Divisibility Score |
Medium |
max, reduce, special |
| 2710 |
Remove Trailing Zeros From a String |
Medium |
mapTo, special |
| 2788 |
Split Strings by Separator |
Medium |
special |
| 2810 |
Faulty Keyboard |
Medium |
mapTo |
| 2864 |
Maximum Odd Binary Number |
Medium |
sort, mapTo, special |
| 2942 |
Find Words Containing Character |
Medium |
special |
| 2956 |
Find Common Elements Between Two Arrays |
Medium |
special |
| 3005 |
Count Elements With Maximum Frequency |
Medium |
max, mapTo, special |
| 3083 |
Substring Present in a String |
Medium |
mapTo, special |
| 3158 |
3158. Find the XOR of Numbers Which Appear Twice |
Medium |
reduce, mapTo, special |
| 3280 |
Convert Date to Binary |
Medium |
special |
| 3536 |
Maximum Product of Two Digits |
Medium |
sort, reduce |
| 3541 |
Find Most Frequent Vowel and Consonant |
Medium |
max, reduce, special |
| 3692 |
Majority Frequency Characters |
Medium |
max, special |
| 3712 |
Sum Divisible by K |
Medium |
reduce, mapTo, special |
| 3769 |
Sort Integers by Binary Reflection |
Medium |
sort, mapTo, special |
| 3843 |
First Element with Unique Frequency |
Medium |
min, special |
| 3852 |
Smallest Pair With Different Frequencies |
Medium |
sort, mapTo, special |
| 3931 |
Check Adjacent Digit Differences |
Medium |
special |
| 3940 |
Limit Occurrences in Sorted Array |
Medium |
special |
| 3945 |
Digit Frequency Score |
Medium |
mapTo, special |
| 3950 |
Exactly One Consecutive Set Bits Pair |
Medium |
special |
| 3982 |
Sum of Integers with Maximum Digit Range |
Medium |
min, max, reduce, special |
| 3992 |
Rearrange String to Avoid Character Pair |
Medium |
sort, mapTo, special |
About🚀 LeetCode algorithm and data structure solutions implemented entirely using modern Java Streams and functional programming paradigms. TopicsResourcesStars0 stars Watchers0 watching Forks
|