Tiger's leetcode solution

Monday, December 26, 2016

448. Find All Numbers Disappeared in an Array

›
Q: Given an array of integers where 1 ≤ a[i] ≤  n  ( n  = size of array), some elements appear twice and others appear once. Find all th...

392. Is Subsequence

›
Q: Given a string  s  and a string  t , check if  s  is subsequence of  t . You may assume that there is only lower case English lette...
Sunday, December 25, 2016

475. Heaters

›
Q: Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses. Now...

477. Total Hamming Distance

›
Q: The  Hamming distance  between two integers is the number of positions at which the corresponding bits are different. Now your job i...
Saturday, December 24, 2016

373. Find K Pairs with Smallest Sums

›
You are given two integer arrays  nums1  and  nums2  sorted in ascending order and an integer  k . Define a pair  (u,v)  which consists o...
Sunday, June 26, 2016

367. Valid Perfect Square

›
Q: Given a positive integer  num , write a function which returns True if  num  is a perfect square else False. Note:   Do not  use any...
1 comment:
Monday, June 20, 2016

315. Count of Smaller Numbers After Self

›
Q: You are given an integer array  nums  and you have to return a new  counts  array. The  counts  array has the property where  counts[i]...
‹
›
Home
View web version

About Me

Tiger
View my complete profile
Powered by Blogger.