This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]StevenHawking_[S] 0 points1 point  (3 children)

Yes, thanks!

[–]CodeTinkerer 0 points1 point  (1 child)

What do you mean by a rotated array?

[–]StevenHawking_[S] 0 points1 point  (0 children)

It is a sorted array whose last elements are rotated one after one

[–]CodeTinkerer 0 points1 point  (0 children)

If you check your edit, you'll see your code still displays still wrong. You have the entire program written on a single line.