educative.io

Code not runnable

The code in this question doesnt seem to run, if i return an int i get an error about the int not being iterable


Course: Grokking Coding Interview Patterns in Python - Learn Interactively
Lesson: Kth Smallest Element in a Sorted Matrix - Grokking Coding Interview Patterns in Python

Hello @Zachary_Swanson,
Can you provide me with the code you are trying to run This question won’t work correctly until you write code in the necessary lines.
Hope this helps

We’re supposed to return the kth smallest integer right?

If i do this, just to test that the test runs:

def kth_smallest_element(matrix, k):
      return 1

it returns an error about int not being iterable

Hi @Zachary_Swanson,

The issue has been fixed. Thanks for pointing it out.