What is a circularly sorted array?

I've seen it mentioned on the Internet. What is a 'circularly sorted array'?

Answers


Usually it refers to an array in which the elements are sorted but may be rotated. For example:

4 5 6 7 1 2 3

The elements here, (1 2 3 4 5 6 7), are "in order," but they are rotated to the left by three.


Need Your Help

Read dynamic xml using element tree

python xml elementtree

Environment: Windows,Python,wxpython and Element tree as xml parser.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.