摘要: You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups b 阅读全文
posted @ 2018-01-03 22:10 immjc 阅读(217) 评论(0) 推荐(0) 编辑
摘要: In a given integer array nums, there is always exactly one largest element. Find whether the largest element in the array is at least twice as much as 阅读全文
posted @ 2018-01-03 20:38 immjc 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 三种函数相关的语言特性:默认实参、内联函数、constexpr函数 默认实参 某些函数有这样一些形参,在函数的很多次调用中它们都被赋予一个相同的值,此时,我们把这个反复出现的值称为函数的默认实参。调用含有默认实参的函数时,可以包含该实参,也可以忽略该实参。 其中我们为每个形参都提供了默认实参,默认实 阅读全文
posted @ 2018-01-03 14:48 immjc 阅读(298) 评论(0) 推荐(0) 编辑