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

Pubblicato il: 24 agosto 2022
sul canale di: 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.


In questa pagina del sito puoi guardare il video online DSA# 1 Sorted Merged List from Two| Using python List | Not Linked List | DSA | Leetcode problem della durata di ore minuti seconda in buona qualità , che l'utente ha caricato IT Yoda 24 agosto 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 73 volte e gli è piaciuto 3 spettatori. Buona visione!