Skip to content

Commit 80293ab

Browse files
authored
Merge pull request #4465 from CodeHarborHub/ajay-dhangar-patch-12
Update index.tsx
2 parents 6e5f1a1 + 64d5ad5 commit 80293ab

File tree

1 file changed

+1
-1
lines changed
  • src/dsa/searching-algorithms/LinearSearchVisualizer

1 file changed

+1
-1
lines changed

src/dsa/searching-algorithms/LinearSearchVisualizer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const LinearSearchVisualizer: React.FC = () => {
5454
<div className="array-container">
5555
{array.map((num, index) => (
5656
<div
57-
key={index}
57+
key={num}
5858
className={`array-item ${index === currentIndex ? 'current' : ''} ${
5959
index === foundIndex ? 'found' : ''
6060
}`}

0 commit comments

Comments
 (0)