9 佛挡S佛

尚未进行身份认证

我要认证

暂无相关简介

等级
TA的排名 58w+

leetCode 之Palindrome Number in Java

public class Solution {    public boolean isPalindrome(int x) {        if (x       String num=String.valueOf(x);       return new StringBuffer(num).reverse().toString().equalsIgnoreCase(num); 

2016-03-11 17:54:03

Mac中Eclipse代码自动整理快捷键

Mac中Eclipse代码自动整理快捷键是  command+shift+f

2016-03-06 13:38:35

leetcode之atoi() in java

public class Solution {    public int myAtoi(String str) {       int result=0;       if (str.equals ("") || str.trim().equals("")) {             return 0;         }         if (!str.equals

2016-03-06 13:29:43

Rotate Array

Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to[5,6,7,1,2,3,4]. Note:Try to come up as many solutions as yo

2015-11-25 19:07:11

Contains Duplicate in c

Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every elemen

2015-11-25 19:05:29

LeetCode Contains Duplicate II

Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between iand j is at

2015-11-25 19:02:43

笔试题目

转自:http://blog.csdn.net/luoweifu/article/details/119119311、计算机访问一次内存、SSD硬盘、SATA硬盘的时间大概分别是多少?几纳秒、几微秒、几豪秒,2、八进制的256用七进制表示是多少?336   3、若进程在内存中占3页(开始时内存为空),若采用先进先出(LRU)页面淘汰算法,当执行如下访问页号序

2015-10-06 22:31:45
勋章 我的勋章
    暂无奖章