HackerRank - Remove Duplicates from a Sorted Linked List | Full solution | Study Algorithms

preview_player
Показать описание
Modifying a data structure and making it optimal is a very popular programming problem. You are given a sorted linked list which has some duplicates. We need to return a list without those duplicates. One way could be to use a set of unique elements. It can also be solved efficiently without using any extra space. This video shows animations which help you understand the approach and advantage of the method. Full code implementation also available.

Chapters:
00:00 - Intro
01:05 - Problem Statement and Description
02:52 - Brute Force Method
05:49 - Efficient Method
09:47 - Dry-run of code
14:23 - Final Thoughts

📚 Links to topics I talk about in the video:

📘 A text based explanation is available at:

📖 Reference Books:

🎥 My Recording Gear:

💻 Get Social 💻

#hackerrank #programming #interview
Рекомендации по теме
Комментарии
Автор

can you do remove duplicates from sorted array

sadulateja
Автор

great video bro. in depth explanation. Btw, When will you cover advanced problems?

pranaym
Автор

any one facing issue while submitting the above soln on leetcode than just first check if head == null return null;

yogadaily