Closed scozv closed 10 years ago
From Algo.js of Google Code on September 28, 2013 17:47:29
What steps will reproduce the problem?
union(n)
0
n-1
1
n
What is the expected output? What do you see instead? How it still works, without any out of index range error?
Please use labels and text to provide additional information. run following codes may get some answers:
var find = new union(10); find.union(3, 10); find._id.length; find._id[10];
Original issue: http://code.google.com/p/algo-js/issues/detail?id=19
From Algo.js of Google Code on September 28, 2013 17:50:25
fixed in revision ddc054428915
Status: Fixed
From Algo.js of Google Code on September 28, 2013 17:47:29
What steps will reproduce the problem?
union(n)
which has an id array with index from0
ton-1
(inclusive)1
ton
(inclusive)What is the expected output? What do you see instead? How it still works, without any out of index range error?
Please use labels and text to provide additional information. run following codes may get some answers:
Original issue: http://code.google.com/p/algo-js/issues/detail?id=19