Back to Browse

Out of Memory! Hackerrank Medium: Queen's Attack II Python

1.6K views
Jul 2, 2020
55:46

Learn Python for free at Productive Dev: courses.productivedev.com Here I try a Medium Hackerrank algorithm problem called Queen's Attack II. The first solution uses unnecessary space and results in an out of memory error. It turns out that O(n^2) space is a problem! The second solution runs in O(k) time and O(1) space where k is the number of obstacles.

Download

1 formats

Video Formats

360pmp484.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Out of Memory! Hackerrank Medium: Queen's Attack II Python | NatokHD