Remove Duplicates From Sorted Array II - Leetcode 80 - Arrays & Strings (Python)

preview_player
Показать описание


Please check my playlists for free DSA problem solutions:

My Favorite Courses:

Data Structures & Algorithms:

Python:

Web Dev / Full Stack:

Cloud Development:

Game Development:

SQL & Data Science:

Machine Learning & AI:
Рекомендации по теме
Комментарии
Автор

Thanks greg for your explanations for the problems ❤ it helps me a lot while learning new approaches to solve a problem.

umeshchaudhari
Автор

Thank you for the video explanation. You make the solution so simple.
Just a comment - we dun have to keep track of count if we evaluate nums[i] != nums[j-1]. If this is evaluated to be True, then increase j and make nums[j] = nums[i].

JoeTan-nqfq
Автор

Great solution. However, I found the title and description of this Leetcode problem quite misleading. It asks to remove the duplicates in-place, then return the number of unique values. Most of the solutions I have found do not actually remove duplicates in-place.

kitaolivia
Автор

Shorts are underestimating your teaching skills...do videos instead!! Great explanation.

TasCashGr
Автор

Can you make video on find missing and duplicate in array?

meetpatel.