摘要:
Question A robot is located at the top left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right 阅读全文
摘要:
方法一 方法三 C++ include include include using namespace std; int main(int argc, char argv) { std::ifstream t("file.txt"); std::stringstream buffer; buffer 阅读全文
摘要:
Question 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 representat 阅读全文
摘要:
Question Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end inde 阅读全文
摘要:
Question Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the ma 阅读全文
摘要:
Question A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive element 阅读全文
摘要:
Question Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [ 2, 0, 3, 5, 2, 阅读全文