leetcode
文章平均质量分 57
ychanmy
这个人很懒,什么都没有留下
展开
-
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). Example 1: Input: 11 Output: 3 Explanation: Integer 11 has binar...原创 2018-07-17 14:56:36 · 121 阅读 · 0 评论 -
Isomorphic Strings
问题描述: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with a...原创 2018-07-17 16:09:47 · 92 阅读 · 0 评论 -
Count Primes
问题描述: Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. 简述: 给一个非负整数n,计...原创 2018-07-19 12:02:35 · 125 阅读 · 0 评论 -
203. Remove Linked List Elements
问题描述: Remove all elements from a linked list of integers that have value val. Example: Input: 1->2->6->3->4->5->6, val = 6 Output: 1->2->3->4->5 简述: 删除链表中特定值的节点。 ...原创 2018-07-19 14:59:16 · 104 阅读 · 0 评论