Y
Hacker News
new
|
ask
|
show
|
jobs
by
coder007
3385 days ago
it doesn't return the index, rather the element itself..
1 comments
dwils098
3385 days ago
True. This is what I meant by confusing, without properly defining the variables at play, in this context, k is the index of the element of the ordered list, and not the kth smallest element.
Semantics, I agree, but confusing nonetheless.
Or in other words, how do we define k?
link
coder007
3385 days ago
I have emailed them. post should be updated soon.
link
dwils098
3384 days ago
Post has been updated.
link
Semantics, I agree, but confusing nonetheless.
Or in other words, how do we define k?