LIKE CODING

Monday, July 25, 2016

LeetCode [350] Intersection of Two Arrays II

›
350. Intersection of Two Arrays II Easy 1711 461 Add to List Share Given two arrays, write a function to compute their intersection. Exampl...

LeetCode [349] Intersection of Two Arrays

›
   Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1] , nums2 = [2,2] Output: [2] ...

LeetCode [348] Design Tic-Tac-Toe

›
Design a Tic-tac-toe game that is played between two players on a  n  x  n  grid. You may assume the following rules: A move is guaran...

LeetCode [347] Top K Frequent Elements

›
Given a non-empty array of integers, return the  k  most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3] , k = 2 Output: [...

LeetCode [346] Moving Average from Data Stream

›
  346.   Moving Average from Data Stream Easy 636 63 Add to List Share Given a stream of integers and a window size, calculate the moving av...

LeetCode [345] Reverse Vowels of a String

›
  345.   Reverse Vowels of a String Easy 798 1287 Add to List Share Write a function that takes a string as input and reverse only the vowel...

LeetCode [344] Reverse String

›
Write a function that reverses a string. The input string is given as an array of characters  char[] . Do not allocate extra space for...
‹
›
Home
View web version
Powered by Blogger.