633
来源:互联网 发布:沈阳软件开发公司 编辑:程序博客网 时间:2024/06/03 10:21
2017.9.11
感觉并没有啥意思啊这题,还是我误解了这题的真谛?
public class Solution { /** * @param nums an array containing n + 1 integers which is between 1 and n * @return the duplicate one */ public int findDuplicate(int[] nums) { // Write your code here Arrays.sort(nums); for(int i = 0;i < nums.length-1;i++){ if(nums[i] == nums[i+1]){ return nums[i]; } } return 0; }}
阅读全文
0 0
- 633
- NYOJ 633 幂
- SRM 633 DIV2 A
- CodeForces 633A
- Codeforce 633D multiset
- Codeforces 633B
- standalone windbg v6.12.0002.633
- [TC] SRM 633 div2 250
- 633A.Ebony and Ivory
- TopCoder SRM 633 Div2 Problem 500 - Jumping
- NYOJ 题目633 幂(数学)
- 连接vpn错误633的解决办法
- TopCoder SRM 633 Div.2 500 Jumping
- NYOJ 633 弟弟的作业【字符串处理】
- Codeforces 633D Fibonacci-ish(搜索)
- CF 633B:A Trivial Problem
- Codeforces 633A Ebony and Ivory 【水题】
- Codeforces 633B A Trivial Problem 【数论】
- keepalived监控脚本未执行
- 入门理解:fork() 与 vfork()
- java获取当前路径的几种方法
- Java开发练习1,打印出所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该数本身。例如:153 是一个"水仙花数",因为153=1的三次方+5的三次方+3的三次方。
- LPC2138的时钟
- 633
- 关于Vue.nextTick()的正确使用
- 双边滤波JAVA代码实现
- XAMPP 环境下配置Mysql root 密码设置
- 例题6-9 天平(Not so Mobile, UVa 839)
- java-4个访问控制权限
- Android设置控件的透明度
- spring4 staticproxy
- HDU 6198 number number number(规律+矩阵快速幂)