注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
走过路过求个大米,米实在是太少了,拜托拜托
intern oa survey + coding (不过做完现在还没啥消息,有没有最近做完有消息的朋友哇)
1)You are given an array of integers. Your task is to create pairs of them, such that every created pair has the same sum. This sum is not specified, but the number of created pairs should be the maximum possible. Each array element may belong to one pair only.
Write a function:
class Solution { public int solution(int[] A); should return "erformance".
3. Given S = "cat", your function should return "c".
Write an efficient algorithm for the following assumptions:
the length of S is within the range [1..100,000];
string S consists only of lowercase letters (a−z).
|