Browsing Tag
leetcode
22 posts
Key Steps to Prepare for a Software Engineer Interview
1. Deciphering Software Engineering Interviews Before diving deep into coding exercises or system design preparation, it’s vital to…
2733. LeetCode’s Neither Minimum nor Maximum – JAVA SOLUTION BEATS 100% OF SOLUTIONS IN BOTH RUNTIME AND MEMORY
Code class Solution { public int findNonMinOrMax(int[] nums) { int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; for…
Extremely SIMPLE & LOGICAL Java SOLUTION – Beats 94% of Solutions!!!! 🔥🔥
Intuition To convert a string to an integer, we need to ignore any leading whitespace characters and check…
83. Remove Duplicates from Sorted List leetcode solution in java
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; *…
LeetCode’s Running Sum of 1d Array – Highly Efficient Java Solution (Beats 100% In Runtime And 94% in Memory Usage)
Intuition My first thought on how to solve this problem is to iterate through the array and add…
Find Median from Data Stream
The median is the middle value in an ordered integer list. If the size of the list is…
Orderly Queue
You are given a string s and an integer k. You can choose one of the first k…
Notion Template to Track Your Leetcode Progress & Improve Productivity 🚀
I have created a very simple template for everyone to use. This template is generally created for programmers…
The Most Important Leetcode Patterns
If you have been looking for a job in tech, I am pretty sure you have heard of…