Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
A negative index will eventually throw a NullPointerException when the nodes run out.
Cool!
Passes the tests but doesn't solve the problem posed.
wut. You sly mutherfucker.
It's genius.
Duplicate.
good idea!
Random tests added.
Not an issue
Description is already fixed and the other part should be raised as a suggestion or you should make your own kata based on standards you will like.
O(log n)
wheren
is the input range.Since temperatures are stored as integers and the range of possible temperature is pretty small (things like
100000
degrees C is nonsensical) that's not the overhead you're looking for.This comment is hidden because it contains spoiler information about the solution
Shall we add a proper testcase to include these edge cases? :) thanks for your feedback!
What if a negative index is passed in?
@haferjir: I closed it for you
Loading more items...