注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
求大米!!
1. Code Question 1
Amazon Shopping recently launched a new item
whose daily customer ratings for n days is
represented by the array ratings. They monitor
these ratings to identify products that are not
performing well. Find the number of groups that
can be formed consisting of 1 or more
consecutive days such that the rating
continuously decreases over the days.
The rating is consecutively decreasing if it has the
form: r r - 1, r- 2... and so on, where ris the
rating on the first day of the group being
cA
Example
password = "good"
password strength = 16
A
Function Description
Complete the function findPasswordStrength in
the editor below.
findPasswordStrength has the following
parameter:
string password: the password
Returns
long int: the strength of the password
|