Skip to content

Add input validation, error handling, and search comparison loop#14

Open
JesusAlvarado48 wants to merge 8 commits into
kying18:masterfrom
JesusAlvarado48:master
Open

Add input validation, error handling, and search comparison loop#14
JesusAlvarado48 wants to merge 8 commits into
kying18:masterfrom
JesusAlvarado48:master

Conversation

@JesusAlvarado48
Copy link
Copy Markdown

  • Added get_valid_integer() function to validate user input
  • Implemented error handling to prevent unexpected crashes
  • Added interactive loop allowing repeated searches (Y/N prompt)
  • Added timing comparison for naive vs binary search after successful find
  • Cleaned up unused code and improved readability
  • Enhanced user experience with clear prompts and feedback

JesusAlvarado48 and others added 8 commits February 28, 2026 14:33
…nts to the code for anyone to understand the code.
Co-authored-by: JesusAlvarado48 <166447390+JesusAlvarado48@users.noreply.github.com>
Co-authored-by: JesusAlvarado48 <166447390+JesusAlvarado48@users.noreply.github.com>
Refactor login.py: remove hardcoded credentials, add getpass, improve structure
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