Thanks for feedback on my solution! :)
int i{ 1 } is equivalent of int i = 1
Yes, there is solution in O(1) time, but this solution is O(n)
c++ translation have "0" in random test cases
O(n^2) bruh
This comment is hidden because it contains spoiler information about the solution
AFAIK .sort() is method for lists and it doesnt return anything.
it isn't, lol
Loading collection data...
Thanks for feedback on my solution! :)
int i{ 1 } is equivalent of int i = 1
Yes, there is solution in O(1) time, but this solution is O(n)
c++ translation have "0" in random test cases
O(n^2) bruh
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
AFAIK .sort() is method for lists and it doesnt return anything.
it isn't, lol
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution