Hello_Motty

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年8月8日

摘要: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文
posted @ 2017-08-08 22:26 Hello_Motty 阅读(133) 评论(0) 推荐(0) 编辑

2017年8月7日

摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2017-08-07 23:01 Hello_Motty 阅读(109) 评论(0) 推荐(0) 编辑

2017年8月6日

摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi 阅读全文
posted @ 2017-08-06 17:06 Hello_Motty 阅读(124) 评论(0) 推荐(0) 编辑

2017年8月5日

摘要: TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http 阅读全文
posted @ 2017-08-05 19:58 Hello_Motty 阅读(430) 评论(0) 推荐(0) 编辑