Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content

Solution time complexity is wrong, pushing first element of each list to heap costs O(M Log M)

Miguel Rodriguez

Sep 21, 2025

1

2

0

Sep 21, 2025

Saving the index of each list instead of their references

mariana.lopez.jaimez

Aug 25, 2024

1

15

0

Jan 9, 2025

FYI: you can just put the lists directly into the min heap

Ike Nwankwo

Nov 7, 2023

1

41

1

Jan 9, 2025

why is len(list) > i + 1, and not len(list) > i?

Jonathan

Jul 5, 2022

0

9

1

Jul 19, 2022

For the C++ solution, instead of pair of pairs we could use std::tuple to create...

Athanasios Petsas

Mar 3, 2022

0

7

0

Mar 3, 2022

On this page