Как удалить дубликаты из отсортированного массива? | Задача с Leetcode

Hello friends! We have another Leetcode task for you: https://leetcode.com/problems/remove-... This is a simple difficulty task, but quite popular in interviews: "How to remove duplicates from a sorted array?". We have already filmed a separate video about removing duplicates from an array:    • Как удалить дубликаты из массива? 3 способ...   In it, we looked at 3 different methods. But, unfortunately, they are not suitable for solving this particular problem. Since we have an important limitation - the memory complexity of the algorithm must be O(1). Therefore, in this video, we will analyze another algorithm in which we will remove all duplicates from a sorted array in one loop pass. Leave your solutions below in the comments, share this video with your friends! Enjoy watching! Code from the video: https://codepen.io/puzankov/pen/jOWKa... --- If you found the video useful, like it and share it with your friends. Subscribe to our channel: http://bit.ly/fs-ytb --- Join us on social networks: FB:   / frontendscience   Instagram of Sergey Puzankov:   / puzankovcom   Visit our website: http://frontend-science.com/ #javascript #tasks #leetcode #itinterview