@@ -10,7 +10,7 @@ import { withAlgorithmParams } from './helpers/urlHelpers' // Import this for UR
10
10
import { URLContext } from '../../context/urlState.js' ;
11
11
import '../../styles/Param.scss' ;
12
12
13
-
13
+ // export const DEFAULT_NODES = genRandNumList(12, 1, 50);
14
14
const DEFAULT_NODES = genRandNumList ( 10 , 1 , 100 ) ;
15
15
const HEAP_SORT = 'Heap Sort' ;
16
16
const HEAP_SORT_EXAMPLE = 'Please follow the example provided: 0,1,2,3,4' ;
@@ -20,13 +20,13 @@ function HeapsortParam({ list }) { // add the parsing parameters for your algori
20
20
// const { alg, mode, param } = useUrlParams();
21
21
// const {list, value, xyCoords, edgeWeights, start, end, string, pattern, union} = parseParam(param);
22
22
// const { alg, mode, list } = withAlgorithmParams(HeapsortParam);
23
- const DEFAULT_NODES = genRandNumList . bind ( null , 12 , 1 , 50 ) ; // Define the default list of nodes
23
+ // const DEFAULT_NODES = genRandNumList.bind(null, 12, 1, 50); // Define the default list of nodes
24
24
const [ localNodes , setLocalNodes ] = useState ( list || DEFAULT_NODES ) ;
25
25
const [ message , setMessage ] = useState ( null ) ;
26
26
const { setNodes } = useContext ( URLContext ) ;
27
27
28
28
useEffect ( ( ) => {
29
- setNodes ( localNodes ) ;
29
+ setNodes ( localNodes ) ;
30
30
} , [ localNodes ] ) ;
31
31
32
32
return (
0 commit comments