摘要:
问题描述: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and . Example: Given a = 1 and b = 2, return 3 解题思路: 我们 阅读全文
摘要:
问题描述: 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 maxim 阅读全文
摘要:
问题描述: Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can 阅读全文
摘要:
问题描述: Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: Return tr 阅读全文
摘要:
类型转换,顾名思义即将操作数转化为所需要的类型。C++作为C语言的超集,完全继承了C语言所具有的类型转换方法与能力。C语言有两种类型转换方式:隐式转换(implicit)和显示转换(explicit)。示例如下: int a = 10; double b = a; // 隐式转换 int c = (int)b; // 显示转换 容易看出,这两种转换方式存在某些缺陷... 阅读全文