Is there a website that allows anybody to view and edit implementations (in Python, C++, etc.) of algorithms?
For example, there is a page called Pascal’s Triangle. The content below shows the code of how to implement Pascal’s Triangle in Python. It also shows the output when the function has a parameter of 5.
Console:
>>> pascal_triangle(5)
[1]
[1, 1]
[1, 2, 1]
[1, 3, 3, 1]
[1, 4, 6, 4, 1]
I’m not entirely sure, since this isn’t a programming question, but no flagging. Still, in answer to your question, a possible site that might suit your purposes would be algorithmist? It’s pretty useful, but it has a focus on C++ and C if I recall correctly. I’m not sure how many pages have implementations on them — many of the pages also focus on UVa problems and have implementations that solve problems, rather than being purely algorithmic.