DSA# 1 Sorted Merged List from Two| Using python List | Not Linked List | DSA | Leetcode problem

Опубликовано: 24 Август 2022
на канале: IT Yoda
73
3

Did you like the video and the explanation of the solution?
If Yes, then please remember to hit the like button and Subscribe for more.

Problem Statement:
'''1. Given two sorted lists A and B, write a function that returns a single sorted list that
contains all elements from both A and B. You cannot use any libraries or sort
methods.'''

Approach:
Assign pointers starting from 0 for both the lists and then compare the values from the left and put the smaller value in the sorted_list.


На этой странице сайта вы можете посмотреть видео онлайн DSA# 1 Sorted Merged List from Two| Using python List | Not Linked List | DSA | Leetcode problem длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь IT Yoda 24 Август 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 73 раз и оно понравилось 3 зрителям. Приятного просмотра!