SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Solution to Searching a key in rotated sorted array. #366

Closed venkatsgithub1 closed 2 years ago

venkatsgithub1 commented 2 years ago

Issue Id you have worked upon -

issue #363

Briefly explain your program logic -

The solution program uses binary search to find and element in the sorted but rotated array.

Screenshots(Attach 2 screenshots of your own input and output) -

Input: image Output: image


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

SarthakKeshari commented 2 years ago

@venkatsgithub1, Kindly fill the checklist by agreeing to its terms

venkatsgithub1 commented 2 years ago

@SarthakKeshari - Added question as comment in solution file, please review commit: 3d5a5c2572defcbbfa14dcfe5f70f5e3ade9e626

SarthakKeshari commented 2 years ago

@SarthakKeshari - Added question as comment in solution file, please review commit: 3d5a5c2

File is updated now

SarthakKeshari commented 2 years ago

@venkatsgithub1, Kindly fill the checklist by agreeing to its terms

Kindly look into this too

venkatsgithub1 commented 2 years ago

@SarthakKeshari - Filled the checklist. Missed it. Kindly review further.