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 6e5f1a1 commit 9b1e917Copy full SHA for 9b1e917
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}-${index}`}
58
className={`array-item ${index === currentIndex ? 'current' : ''} ${
59
index === foundIndex ? 'found' : ''
60
}`}
0 commit comments