- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 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 228 1
原创 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 247
原创 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 180
原创 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 218
原创 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 178
转载 笔试题目
转自:http://blog.csdn.net/luoweifu/article/details/119119311、计算机访问一次内存、SSD硬盘、SATA硬盘的时间大概分别是多少?几纳秒、几微秒、几豪秒,2、八进制的256用七进制表示是多少?336 3、若进程在内存中占3页(开始时内存为空),若采用先进先出(LRU)页面淘汰算法,当执行如下访问页号序
2015-10-06 22:31:45 273
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人