Skip to content

Commit

Permalink
+ ♻️ : Made Code Cleaner and easy to access! (#179)
Browse files Browse the repository at this point in the history
* +⚰: Cleaned Code

* + ♻️ : Moved souvikchand/gists to right place.

 he put gist-solutions.md on the repo home moved to contributors/
 @souvikchand.

* + 📄 : Update LICENSE 2023-> 2024

* + ♻️ : Moved  Ashmita001 to Right Place

She had is in contributors/ base not in the contributors/Ashmita001
So, i moved for better clarity. @Ashmita001
  • Loading branch information
NormTurtle authored Jan 6, 2024
1 parent d98f099 commit 5ade474
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 31 deletions.
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.

0 comments on commit 5ade474

Please sign in to comment.