+ 3
Hello Guy's i need help with HTML canvas.
I have made an animation where particle's connect on close proximity https://code.sololearn.com/WRU0N2U5IEt8/?ref=app but the time complexity of for loop is O(n2) i want to reduce it to O(n) I have tried reducing it to single loop, and using 2d array, but it isn't working, plz suggest me some methods. https://code.sololearn.com/WW6kz54T4Dnl/?ref=app
1 Answer