摘要: Sort Integers by The Number Of 1 Bits You are given an integer array arr. Sort the integers in the array in ascending order by the number of 1's in th 阅读全文
posted @ 2022-10-31 20:49 iyiluo 阅读(22) 评论(0) 推荐(0)
摘要: Keyboard Row Given an array of strings words, return the words that can be typed using letters of the alphabet on only one row of American keyboard li 阅读全文
posted @ 2022-10-31 20:46 iyiluo 阅读(36) 评论(0) 推荐(0)
摘要: First Bad Version You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product f 阅读全文
posted @ 2022-10-31 20:46 iyiluo 阅读(27) 评论(0) 推荐(0)
摘要: Missing Number Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the arr 阅读全文
posted @ 2022-10-31 20:45 iyiluo 阅读(15) 评论(0) 推荐(0)
摘要: Number Of 1 Bits Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight). Note: N 阅读全文
posted @ 2022-10-31 20:45 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要: Two Sum Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that 阅读全文
posted @ 2022-10-31 12:23 iyiluo 阅读(19) 评论(0) 推荐(0)