Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
【leetcode】1356. 根据数字二进制下 1 的数目排序(sort-integers-by-the-number-of-1-bits)(模拟)[简单]
链接 https leetcode cn com problems sort integers by the number of 1 bits 耗时 解题 xff1a 15 min 题解 xff1a 6 min 题意 给你一个整数数组 ar
LeetCode
1356
sort
integers
The
list indices must be integers or slices, not tuple 解决方案
解决方案 xff1a 用numpy里的array转化下 xff0c 转成元组 xff1a dataSet 61 np array dataSet 或者也可以将dataSet转化为矩阵 xff1a mat dataSet 两者都可行
list
indices
must
integers
slices