Browsing Tag
leetcode
34 posts
Cracking the LeetCode 905. Sort Array By Parity By Nilesh
LeetCode .905 Sort Array By Parity : Hey there, coding enthusiasts! Welcome back to another exciting coding session.…
DAY 89 – Kadane’s Algorithm
Hey Folks!. Welcome to day 89 of 100DaysOfCode Challenge. We shall be covering the kadane’s algorithm today. Question:…
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…