Leet Code Problem Solutions - Part 6 - Sort Array By Parity and Remove Element from array

Опубликовано: 19 Июнь 2026
на канале: Saurabh Native
90
2

LEETCODE ARRAY PROBLEM SOLUTIONS - PART 6

Part 1:- Sort Array By Parity

In part 1, we will sort the array elements by returning even elements followed by odd elements using javascript. We will learn how to use the push and unshift method to insert elements into an array.

Problem link on leetcode:-https://leetcode.com/explore/learn/ca...
Explanation of pseudo-code using jam board:-https://jamboard.google.com/d/1Qo26au...

Part 2:- Remove Element

In part 2, we are going to remove all occurrences of a value from the input array in-place using javascript. We will learn how to use unshift method to remove the occurrence of a value into an array.

Problem link on leetcode:-https://leetcode.com/explore/learn/ca...
Explanation of pseudo-code using jam board:-https://jamboard.google.com/d/1Qo26au...

References for time complexity calculation:
https://adrianmejia.com/how-to-find-t...


✏️ BLOGGING WEBSITE: https://saurabhnative.hashnode.dev/
---------------------------------------------------------------------------------------------------
MUST JOIN :
🌐 discord server:   / discord  
---------------------------------------------------------------------------------------------------

Suggestions and Feedback
🐦 TWITTER   / saurabhnative  
🎥 INSTAGRAM https://www.instagram.com/saurabhnati...
---------------------------------------------------------------------------------------------------
For collaboration, connect with me on Twitter
🐦 TWITTER   / saurabhnative  
---------------------------------------------------------------------------------------------------
Support me on Kofi
🤝 https://ko-fi.com/saurabhmhatre
---------------------------------------------------------------------------------------------------


Timestamps:
0:00 Intro
0:35 Explanation for sort array by parity
1:42 Pseudo Code for problem
6:36 Implementation for the first problem
11:24 Actual Implementation for the first problem
15:05 Explanation for remove element
17:24 Pseudocode for the problem
19:20 Implementation for the second problem
33:49 Time complexity and endnotes
___________________________________

HASHTAGS:
#leetcode #javascript #competitveprogramming #leetcodeproblems #learnjavascript #leetcodearrayproblems #learnprogramming
#interviewquestions #leetcodesolutions #leetcodeforbeginners

KEYWORDS:
LeetCode for beginners
LeetCode solutions
LeetCode array problems
Leetcode in javascript

🔥 Please Like, Subscribe & Share!!
🔥Thank you !!