Skip to content

Fix: Replace incorrect Fibonacci logic with proper Binary Search#1

Open
ASATOV-GLITCH wants to merge 2 commits intoAhmet321S:mainfrom
ASATOV-GLITCH:main
Open

Fix: Replace incorrect Fibonacci logic with proper Binary Search#1
ASATOV-GLITCH wants to merge 2 commits intoAhmet321S:mainfrom
ASATOV-GLITCH:main

Conversation

@ASATOV-GLITCH
Copy link
Copy Markdown

Hi! I was checking out the project and noticed that the code in binary-search.py was actually about the Fibonacci sequence, not binary search. I thought it was a bit confusing for a learning playground, so I decided to fix it. I’ve replaced it with a proper binary search and used a safer way to calculate the midpoint to avoid any issues with large numbers. Hope this helps!

@Ahmet321S Ahmet321S force-pushed the main branch 28 times, most recently from 7143baf to 805d958 Compare March 14, 2026 18:37
@Ahmet321S Ahmet321S force-pushed the main branch 30 times, most recently from 4a3d235 to c95dbce Compare March 19, 2026 09:22
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.

2 participants