上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 37 下一页
摘要: Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the pers 阅读全文
posted @ 2018-01-18 18:13 immjc 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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 r 阅读全文
posted @ 2018-01-18 14:09 immjc 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. You may ass 阅读全文
posted @ 2018-01-17 10:24 immjc 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin 阅读全文
posted @ 2018-01-16 20:15 immjc 阅读(158) 评论(0) 推荐(0) 编辑
摘要: A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p 阅读全文
posted @ 2018-01-15 21:45 immjc 阅读(328) 评论(0) 推荐(0) 编辑
摘要: Given two integers L and R, find the count of numbers in the range [L, R] (inclusive) having a prime number of set bits in their binary representation 阅读全文
posted @ 2018-01-15 16:56 immjc 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Given an integer array with no duplicates. A maximum tree building on this array is defined as follow: Construct the maximum tree by the given array a 阅读全文
posted @ 2018-01-15 11:27 immjc 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A. We want to find 阅读全文
posted @ 2018-01-09 15:47 immjc 阅读(149) 评论(0) 推荐(0) 编辑
摘要: this指针 一个对象的this指针并不是对象本身的一部分,不会影响sizeof(对象)的结果。 this指针的作用域是在类内部,当在类的非静态成员函数中访问类的非静态成员函数的时候,编译器会自动将对象本身的地址作为一个隐含参数传递给函数。 举个栗子 插一句:定义在类内部的函数是隐式的inline函 阅读全文
posted @ 2018-01-07 14:12 immjc 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Find the largest palindrome made from the product of two n-digit numbers. Since the result could be very large, you should return the largest palindro 阅读全文
posted @ 2018-01-06 14:01 immjc 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 37 下一页