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.
1 parent 9b1e917 commit 64d5ad5Copy full SHA for 64d5ad5
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={`${num}-${index}`}
+ key={num}
58
className={`array-item ${index === currentIndex ? 'current' : ''} ${
59
index === foundIndex ? 'found' : ''
60
}`}
0 commit comments