We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e5f1a1 + 64d5ad5 commit 80293abCopy full SHA for 80293ab
src/dsa/searching-algorithms/LinearSearchVisualizer/index.tsx
@@ -54,7 +54,7 @@ const LinearSearchVisualizer: React.FC = () => {
54
<div className="array-container">
55
{array.map((num, index) => (
56
<div
57
- key={index}
+ key={num}
58
className={`array-item ${index === currentIndex ? 'current' : ''} ${
59
index === foundIndex ? 'found' : ''
60
}`}
0 commit comments