File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
components/DataStructures/Array/Array1DRenderer Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- // XXX could probably do with a restructure!
2
- // Dynamic table size was first implemented in a rather inflexible way wrt what gets
3
- // animated etc. The code has been hacked around to "fix" this but it could do with
4
- // a re-think or at least a clean up!
1
+ // XXX could probably do with a restructure; certainly a clean up !
2
+ // Dynamic table size was first implemented in a rather inflexible way wrt what
3
+ // gets animated etc. The code has been hacked a lot to "fix" this and a
4
+ // bunch of other things...
5
5
6
6
import Array2DTracer from '../../components/DataStructures/Array/Array2DTracer' ;
7
7
import GraphTracer from '../../components/DataStructures/Graph/GraphTracer' ;
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ class Array1DRenderer extends Array2DRenderer {
150
150
style = { { display : 'flex' , justifyContent : 'space-between' } }
151
151
>
152
152
{ longestRow . map ( ( _ , i ) => {
153
- // if the graph instance is heapsort, then the array index starts from 1
154
- i += 1 ;
153
+ // the array index starts from 1 in most algorithms
154
+ // 0 for straightRadixSort (wanted for count array)
155
155
if ( algo !== "straightRadixSort" ) {
156
156
i += 1 ;
157
157
}
You can’t perform that action at this time.
0 commit comments