13 ms·
There's a much more sensible C# merge sort implementation in the same repo as the oddly-over-the-top one linked in the article, which is very very close to the
by MD87 5y ago
There's a much more sensible C# merge sort implementation in the same repo as the oddly-over-the-top one linked in the article, which is very very close to the PHP one: https://github.com/TheAlgorithms/C-Sharp/blob/master/Algorithms/Sorters/Comparison/MergeSorter.cs https://github.com/TheAlgorithms/C-Sharp/blob/master/Algorit...
- hayd 5y agoYou can’t beat that kind of productivity.
- zihotki 5y agoHow do you measure productivity and how can you prove that productivity in PHP is higher than in C#? In my career language was never a productivity bottleneck. Good quality frameworks and libraries do make a big difference on the other hand.
- WalterGR 5y agoThat’s an excellent question, but they were just quoting the article.
- zihotki 5y agoIf we strip whitespaces in the merge sort version you provided and apply same formatting it becomes a 30-liner https://pastebin.com/KmWBMC0M https://pastebin.com/KmWBMC0M vs 31 lines of PHP.