Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ ♻️ : Made Code Cleaner and easy to access! #179

Merged
merged 4 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Shambhavi Mishra
Copyright (c) 2024 Shambhavi Mishra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions gist-solutions.md → contributors/souvikchand/gist-solutions.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
https://github.com/souvikchand/oss101-forked/blob/souvikchand-details/gist-solutions.md
def binary_search(arr, target):
"""
Perform binary search on a sorted array.
Parameters:
- arr (list): The sorted array to search.
- target: The target element to find in the array.
Returns:
- int: The index of the target element if found, otherwise -1.
"""
low, high = 0, len(arr) - 1
while low <= high:
mid = (low + high) // 2
if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1
return -1
https://github.com/souvikchand/oss101-forked/blob/souvikchand-details/gist-solutions.md
def binary_search(arr, target):
"""
Perform binary search on a sorted array.

Parameters:
- arr (list): The sorted array to search.
- target: The target element to find in the array.

Returns:
- int: The index of the target element if found, otherwise -1.
"""
low, high = 0, len(arr) - 1

while low <= high:
mid = (low + high) // 2

if arr[mid] == target:
return mid
elif arr[mid] < target:
low = mid + 1
else:
high = mid - 1

return -1
Binary file removed example.txt
Binary file not shown.
1 change: 0 additions & 1 deletion file.txt

This file was deleted.

Binary file removed git-merge-test/merge.txt
Binary file not shown.
Binary file removed private.key
Binary file not shown.
Binary file removed public_key.asc
Binary file not shown.