首页 > 解决方案 > 在 Python 中按字母顺序和频率排序的时间复杂度是多少?

问题描述

下面的时间复杂度是多少?

word = "abbaa"
sortedWord = sorted(sorted(word), key = word.count)

标签: pythonalgorithmsortingtime-complexitybig-o

解决方案


推荐阅读