Merge k Sorted Lists - LeetCode 23 - Python #heap #leetcode #linkedlist

Deepti Talesra October 23, 2024
Video Thumbnail
Deepti Talesra Logo

Deepti Talesra

View Channel

About

Leetcode interview questions. Coding. Problem solving. Hey y'all! I'm a Cornell University alum who studied CS in the College of Engineering! Currently a SWE at Amazon:) I make videos on how to solve leetcode problems in python :) (easy, medium and hard!) @deeptitalesra - links listed below:)

Video Description

Explaining how to solve Merge k Sorted Lists in Python! Code: https://github.com/deepti-talesra/LeetCode/blob/master/Merge_k_Sorted_Lists.py @0:33 - Example + Explanation @4:39 - Code @10:01 - Time and Space Complexity @12:47- Code Walkthrough with Example Merge Two Sorted Lists - https://youtu.be/RkQ4t9t_c74?si=293N7bilUt1Et5FT Binary Search - https://www.youtube.com/watch?v=tHXHNauyhHs&t=707s Heap Docs - https://docs.python.org/3/library/heapq.html Music: Bensound Lemme know if you have any comments or questions!:))) Socials: https://www.instagram.com/deeptitalesra/ https://www.youtube.com/deeptitalesra Playlists: https://www.youtube.com/playlist?list=PL2b9acjRfGcmDEF0Piph3dDfXZdiLkk0p https://www.youtube.com/playlist?list=PL2b9acjRfGcmCOhCW1LIA2e1tvO0Gx86P https://www.youtube.com/playlist?list=PL2b9acjRfGcl-hPMbVhVtm3Nhx7o3d5my https://www.youtube.com/playlist?list=PL2b9acjRfGcl12wEB0U5MyO4EA8zO9szN https://www.youtube.com/playlist?list=PL2b9acjRfGck8msJzIqj9H3W9fLFmZ2tk https://www.youtube.com/playlist?list=PL2b9acjRfGckwHpnv_aCxU4idWcRLfoTD https://www.youtube.com/playlist?list=PL2b9acjRfGclUD8ZQPF-dyCNIeA29quSj https://www.youtube.com/playlist?list=PL2b9acjRfGckHceq_eZtt7o3me90AkgMp https://www.youtube.com/playlist?list=PL2b9acjRfGckWdp2yU_VheRcaU1EtnrMw https://www.youtube.com/playlist?list=PL2b9acjRfGcm4qYq5MH9LufsJ67-BgkAI If you found this helpful, check out my channel for even **MORE VIDEOS**!!:)) https://www.youtube.com/c/DEEPTITALESRA?sub_confirmation=1 Give it a shot yourself - https://leetcode.com/problems/combination-sum-ii/

You May Also Like

Coding Challenge Essentials

AI-recommended products based on this video

Loading...
Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

Freenove Ultimate Starter Kit for BBC micro bit (V2 Included), 316-Page Detailed Tutorial, 225 Items, 44 Projects, Blocks and Python Code

(382)
$94.95
PrimeFREE delivery Sat, Jun 14
Loading...
MSI Ultra-Slim Thin 15 VR-Ready High FPS Gaming Laptop, 15.6 FHD 144Hz, Intel Core i5-13420H, NVIDIA GeForce RTX 4060, 32GB RAM, 2TB SSD, Backlit KB, Wi-Fi 6, Bundle with PCO Notebook Fold Radiator

MSI Ultra-Slim Thin 15 VR-Ready High FPS Gaming Laptop, 15.6 FHD 144Hz, Intel Core i5-13420H, NVIDIA GeForce RTX 4060, 32GB RAM, 2TB SSD, Backlit KB, Wi-Fi 6, Bundle with PCO Notebook Fold Radiator

(0)
$4,697.44
FREE delivery Jun 23 - Jul 3Only 3 left in stock.
Loading...
VersionTECH. Gaming Mouse Ergonomic Wired Computer Mouse with 7 Colors LED Backlight, 4 DPI Settings Up to 3600 DPI Compatible for Chromebook Windows 7/8/10/11 XP/Mac/Linux Gamer/Notebook/MacBook
Best Seller

VersionTECH. Gaming Mouse Ergonomic Wired Computer Mouse with 7 Colors LED Backlight, 4 DPI Settings Up to 3600 DPI Compatible for Chromebook Windows 7/8/10/11 XP/Mac/Linux Gamer/Notebook/MacBook

(15,947)
$12.79
FREE delivery Thu, Sep 11 on your first order
500+ bought in past month
Loading...
LODVIE Wireless Mouse for Laptop,2400 DPI Wireless Computer Mouse with 6 Buttons,2.4G Ergonomic USB Cordless Mouse,15 Months Battery Life Mouse for Laptop PC Mac Computer Chromebook MacBook-Black

LODVIE Wireless Mouse for Laptop,2400 DPI Wireless Computer Mouse with 6 Buttons,2.4G Ergonomic USB Cordless Mouse,15 Months Battery Life Mouse for Laptop PC Mac Computer Chromebook MacBook-Black

(7,870)
$14.99
Prime
2K+ bought in past month
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

(8)
$39.99
FREE delivery Tue, Nov 4
Loading...
Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

(40)
$39.99
FREE delivery Thu, Nov 13
Loading...
Upperizon Portable Gaming Monitor 18.5 inch 1080P FHD 100 Hz 125% sRGB USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5, Travel Monitor with Kickstand, VESA Compatible

Upperizon Portable Gaming Monitor 18.5 inch 1080P FHD 100 Hz 125% sRGB USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5, Travel Monitor with Kickstand, VESA Compatible

(401)
$175.99
FREE delivery Tue, Aug 12
Loading...
18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

18.5 inch Portable Monitor, InnoView 100HZ 120% sRGB 1080P FHD IPS Large Portable Monitor for Laptop USB C HDMI HDR Gaming Monitor with Kickstand Travel Monitor for Mac PC Xbox PS4/5 Switch

(2,007)
$239.99
FREE delivery Wed, Aug 13
50+ bought in past month
Loading...
cocopar Portable Monitor 18.5 inch 1080P 100Hz 72% NTSC USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5 Switch

cocopar Portable Monitor 18.5 inch 1080P 100Hz 72% NTSC USB-C HDMI Large Portable Monitor for Laptop MacBook Xbox PS4/5 Switch

(5,977)
$179.99
FREE delivery Mon, Aug 11
100+ bought in past month
Loading...
24” 2.5K 2560 * 1440 Portable Monitor 180Hz 120% sRGB USB-C HDMI Large Gaming Second Extender Display Monitor Adjustment Stand for MacBook Laptop,Camera,Desktop,PS5/4, Xbox, Switch,Phone

24” 2.5K 2560 * 1440 Portable Monitor 180Hz 120% sRGB USB-C HDMI Large Gaming Second Extender Display Monitor Adjustment Stand for MacBook Laptop,Camera,Desktop,PS5/4, Xbox, Switch,Phone

(4)
$539.31$469.99
$18.01 delivery Tue, Aug 12
Loading...
Zewwen Laptop Stand for Desk, Ergonomic Adjustable Foldable Computer Stand with Heat-Vent, Aluminium Alloy Laptop Riser Compatible with MacBook Air, Pro, Dell XPS, Samsung, 10”-16"

Zewwen Laptop Stand for Desk, Ergonomic Adjustable Foldable Computer Stand with Heat-Vent, Aluminium Alloy Laptop Riser Compatible with MacBook Air, Pro, Dell XPS, Samsung, 10”-16"

(1,679)
$28.49
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Zewwen Laptop Stand for Desk, Ergonomic Adjustable Foldable Computer Stand with Heat-Vent, Aluminium Alloy Laptop Riser Compatible with MacBook Air, Pro, Dell XPS, Samsung, 10”-16"

Zewwen Laptop Stand for Desk, Ergonomic Adjustable Foldable Computer Stand with Heat-Vent, Aluminium Alloy Laptop Riser Compatible with MacBook Air, Pro, Dell XPS, Samsung, 10”-16"

(1,679)
$29.44
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
BESIGN LSX7 Laptop Stand with 360° Rotating Base, Ergonomic Adjustable Notebook Stand, Riser Holder Computer Stand Compatible with Air, Pro, Dell, HP, Lenovo More 10-15.6" Laptops (Black) Recycled Claim Standard Blended

BESIGN LSX7 Laptop Stand with 360° Rotating Base, Ergonomic Adjustable Notebook Stand, Riser Holder Computer Stand Compatible with Air, Pro, Dell, HP, Lenovo More 10-15.6" Laptops (Black) Recycled Claim Standard Blended

(3,511)
$29.99
400+ bought in past month