[FEATURE]: Searching & Sorting Algorithms
[New Feature] Searching and Sorting Algorithms
- Added reference implementations for searching (linear, binary) and sorting (bubble, quicksort, merge sort) algorithms.
- Useful for interview prep and algorithmic learning.
#[Sample] JS Algorithm (Binary Search):
function binarySearch(arr, target) { let left = 0, right = arr.length - 1; while (left <= right) { const mid = Math.floor((left + right) / 2); if (arr[mid] === target) return mid; if (arr[mid] < target) left = mid + 1; else right = mid - 1; } return -1; }
Can you please assign this issue to me? I am a second year MTech student from DAIICT.
Hello,I'd like to contribute a fix for the binary search implementation.
Hi @nidh-cyber š
I noticed that the repository already includes a comprehensive set of searching and sorting algorithms such as BinarySearch.js, LinearSearch.js, MergeSort.js, QuickSort.js, BubbleSort.js, etc.
Could you please clarify whether this issue (#1835) aims to:
- Add new algorithms not yet included, or
- Refactor / modernize / add tests or docs for the existing ones?
Iād be happy to contribute accordingly once I know the specific scope.
Thanks! ā Sahil Maurya
@nidh-cyber it is already their in the search folder you don't to be worry for this