Remove Element | Leetcode problem 27
Ғылым және технология
Remove Element
Leetcode problem number 27
Solution in JAVA
JAVA interview programming playlist:
• Interview Programming ...
Linkedin: / amrita-bala-a2b79460
#java #interviewquestions #leetcode
Пікірлер: 33
Very nice explanation, after watching 5 videos finally I understood here.
Hi mam! you using for loop .by using that time complexity o(n)if there (N) no of arr ,what is the best method to use under the time complexity
thanks mam !that was a excellent solution....i am happy to learn this approach as it was small and effecient
simplest way to explain , love your voice , thanks for this amazing content
@TechnosageLearning
11 ай бұрын
Thank you😊😊
This is the best channel ❤❤❤
really helpful.
Huge thanks
Thank you very much
Very nice video👍👍
Thanks 👍😊
very helpfull
Well this solution is good in its place, what if the question considers to be having an impact with moving the other digits to the end ...that would be more interesting
Thanks
this is only the first part of the quetion the other is missing
But in this question saying that we do not have to use any extra space right?
@TechnosageLearning
11 ай бұрын
Hi..Yes..We don't have to use an extra space.. I will make a separate video on that approach without using any extra spaces.. Thanks!
@11csepratikshaargulewar71
Ай бұрын
Aren't we using no extra space .since we are modifying the input array i .e in-place itself as question asks.the code would work fine with O(n) time complexity .correct me if i am wrong
From the question, I can see that we should not use another array that very much increases the space complexity and it defeats the whole purpose of two pointer concept
@subodhnagarkar5572
2 ай бұрын
it was used to moved the all elements that are not equal to val towards the beginning of the array.
Request to create all the soln
@TechnosageLearning
Жыл бұрын
Sure...stay connected..Will keep uploading more solutions
Please solve LEETCODE 118 problem
@TechnosageLearning
Жыл бұрын
Ok
your voice is very sweet
@Shivam_guru
Ай бұрын
aagye chichore sahab
@sunnysolanki2460
Ай бұрын
@@Shivam_guru tu hoga chichora kamine
give me the copy of this code
@TechnosageLearning
6 ай бұрын
github.com/Technosagelearning/Technosage/blob/main/Interview_programming_solutions/RemoveElement.java
but the question says you have to do in-place.
It will not work because extra space is allocted
@TechnosageLearning
11 ай бұрын
Hi..It will work..but there is a different approach to solve the question without allocating extra spaces..Will make a separate video on that! Thanks!