top of page
Ashwin Shirva
5 hours ago5 min read
930. Binary Subarrays With Sum - LeetCode Fastest Solution
Given a binary array nums and an integer goal, return the number of subarrays with a sum equal to goal. A subarray is a contiguous part of
12 views1 comment
Ashwin Shirva
4 days ago5 min read
560. Subarray Sum Equals K - LeetCode Fastest Solution
Given an integer array nums and an integer k, return the total number of subarrays in nums whose sum is equal to k. A subarray is a
52 views1 comment
Code Recipe
6 days ago4 min read
1991. Find the Middle Index in Array - LeetCode Fastest Solution
Given an integer array nums, find the middle index in array, middleIndex. Note that you must find the leftmost middle index in nums array.
27 views1 comment
Code Recipe
Jan 184 min read
234. Palindrome Linked List - LeetCode Fastest Solution
Given the head of singly linked list, return true if it is a palindrome, false otherwise. A palindrome is a sequence that reads the same for
18 views1 comment
Code Recipe
Jan 164 min read
142. Linked List Cycle II - LeetCode Fastest Solution
Given the head node of a linked list, return the node where the cycle starts. If cycle does not exist, return null. Do not modify the linked
31 views1 comment
Code Recipe
Jan 144 min read
141. Linked List Cycle - LeetCode Fastest Solution
Given the head node of a singly linked list, determine if the linked list has a cycle in it. A linked list has a cycle if some node in the
123 views1 comment
bottom of page