All Questions
Tagged with sorting transformation
2
questions
1
vote
1
answer
95
views
Sort rectangles by size, but with a tunable advantage favoring squareness
I want to sort some rectangles from biggest to smallest, but with a tunable advantage favoring squarer rectangles. I'm sure this is super easy but I'm not getting it. I think it's related to topics ...
1
vote
1
answer
2k
views
How to convert a sequence of numbers in the formula?
I'm trying to understand different sorting algorithms and their BigO notation. Suppose, I'm using insertion sort and I have the worst case:
6 | 5 | 4 | 3 | 2 | 1
...