Ryan’s leetcode Blog
2015年12月18日星期五
Remove Linked List Elements leetcode
›
Remove all elements from a linked list of integers that have value val . Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 ...
2015年12月16日星期三
Single Number III leetcode
›
Given an array of numbers nums , in which exactly two elements appear only once and all the other elements appear exactly twice. Find the ...
2015年12月5日星期六
Sliding Window Maximum leetcode
›
Given an array nums , there is a sliding window of size k which is moving from the very left of the array to the very right. You can onl...
2015年11月10日星期二
Reverse Bits leetcode
›
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010...
Power of Two leetcode
›
Given an integer, write a function to determine if it is a power of two. public class Solution { public boolean isPowerOfTwo(int n) {...
Number of 1 Bits leetcode
›
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight ). For e...
2015年11月3日星期二
3Sum Smaller leetcode
›
Given an array of n integers nums and a target , find the number of index triplets i, j, k with 0 <= i < j < k < n tha...
1 条评论:
›
主页
查看网络版本