PAT(Basic Level) 1001: 害死人不偿命的(3n+1)猜想
卡拉兹(Callatz)猜想:对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。
卡拉兹(Callatz)猜想:对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。
Given two arrays, write a function to compute their intersection.
Given two strings s and t, write a function to determine if t is an anagram of s.
Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array.
Given an integer (signed 32 bits), write a function to check whether it is a power of 4.
今天在chrome自动更新到523版本后,突然被chrome上显示的字体吓了一下,还以为什么坏了。后来才发现是mactype无效了,因为Chrome52后禁用DirectWrite渲染的选项已经没有了。