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.
Download
0 formats
No download links available.
DSA# 1 Sorted Merged List from Two| Using python List | Not Linked List | DSA | Leetcode problem | NatokHD