Skip to content

Updated the code and increased time complexity FibUpdate.cpp#6

Open
Tuhin1500 wants to merge 1 commit intoDogey-Kumar:mainfrom
Tuhin1500:patch-1
Open

Updated the code and increased time complexity FibUpdate.cpp#6
Tuhin1500 wants to merge 1 commit intoDogey-Kumar:mainfrom
Tuhin1500:patch-1

Conversation

@Tuhin1500
Copy link
Copy Markdown

Modularize the Fibonacci Number Calculation: created a separate function to calculate Fibonacci numbers, making the code more modular and easier to understand.

Input Validation: Added input validation to ensure that the input array is sorted because Fibonacci search works on sorted arrays. If the array is not sorted, we can print an error message.

Modularize the Fibonacci Number Calculation: created a separate function to calculate Fibonacci numbers, making the code more modular and easier to understand.

Input Validation: Added input validation to ensure that the input array is sorted because Fibonacci search works on sorted arrays. If the array is not sorted, we can print an error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant