about | help | code help+videos | done | prefs |
Given an array of integers named countInversions([1, 4, 3, 2]) → 3 countInversions([1, 2, 4, 3, 5, 6]) → 1 countInversions([1, 2, 3, 4, 5, 6]) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 2.0 Post-solution available
Copyright Nick Parlante 2017 - privacy