Skip to content

You are given a sorted array of N elements. But unfortunately the array has been circularly shifted 0<K<N times and you don’t know that K. Design the following algorithm: Detect How many times the array has been circularly shifted, find the K. Your Algorithm should run in O(log N) time and Design an O(N) algorithm which should undo those rotatio…

Notifications You must be signed in to change notification settings

Tabed23/Shifts_in_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

About

You are given a sorted array of N elements. But unfortunately the array has been circularly shifted 0<K<N times and you don’t know that K. Design the following algorithm: Detect How many times the array has been circularly shifted, find the K. Your Algorithm should run in O(log N) time and Design an O(N) algorithm which should undo those rotatio…

Topics

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages