2016年5月25日

摘要: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s 阅读全文
posted @ 2016-05-25 18:45 烁宝宝 阅读(159) 评论(0) 推荐(0)
 
摘要: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2]. Note: Each elemen 阅读全文
posted @ 2016-05-25 18:23 烁宝宝 阅读(119) 评论(0) 推荐(0)
 
摘要: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each element i 阅读全文
posted @ 2016-05-25 18:12 烁宝宝 阅读(198) 评论(0) 推荐(0)
 
摘要: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文
posted @ 2016-05-25 14:27 烁宝宝 阅读(206) 评论(0) 推荐(0)