注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
1.Longest Even Length word
参考这个链接,两种解法我都试了,第一种会有test case不能pass,记得用第二种解法
2.Sum of Subarrays
Subarray is a contiguous block of an array's elements. Given an array of integers, find the sum of all elementsints
1<=n<=n* 10^5
1<=arr[i]<= 10^3, where0<=i< n
解法:
用第三种mathematical solution能all pass
求大米 谢谢!!!! |