We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6
O(n^6)
def generate_color_way01(): """ 生成所有六位`RGB`颜色,复杂度为:O(n^6),不可取 :return: """ all_ch = string.digits + string.ascii_uppercase[0:6] print(all_ch) color_list = [] for ch1 in all_ch: for ch2 in all_ch: for ch3 in all_ch: for ch4 in all_ch: for ch5 in all_ch: for ch6 in all_ch: color_list.append(ch1 + ch2 + ch3 + ch4 + ch5 + ch6) return color_list
The text was updated successfully, but these errors were encountered:
No branches or pull requests
6
个循环语句,时间复杂度为O(n^6)
,太低效了,不可采取。The text was updated successfully, but these errors were encountered: