algorithms icon indicating copy to clipboard operation
algorithms copied to clipboard

Algorithms & Data Structures in Go

Results 20 algorithms issues
Sort by recently updated
recently updated
newest added

Hi, I add a variable 'left' > h.Left = h.Left.Left' > h.Right = h.Left.Right This statement will cause the right node of left to be lost check it please, thanks

should be `(i-1) >> 1` https://github.com/arnauddri/algorithms/blob/master/data-structures/heap/heap.go#L81

Remove unused code

#2 Providing a simple Treap implementation.

line 150: result := MakeMatrix(make([]float64, A.cols*A.rows), A.cols, A.rows) maybe change to: result := MakeMatrix(make([]float64, A.cols*A.rows), A.rows, .cols) the order of the params in not right ??? :)

} func (A *Matrix) add(B *Matrix) error { - if A.cols != B.cols && A.rows != B.rows { - if A.cols != B.cols || A.rows != B.rows { return errors.New("Wrong...

I want to see how Treap is implemented in Go.

Hello I would be thankful a lot if you could add Yen's KSP to the Graphs algorithms. In general, it uses Dijkstra to find k-shortest paths and is crucial, when...