2017年3月27日

LeetCode : Valid Perfect Square

摘要: Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built-in library... 阅读全文

posted @ 2017-03-27 22:38 gechen 阅读(81) 评论(0) 推荐(0) 编辑

LeetCode : Reverse Vowels of a String

摘要: 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:... 阅读全文

posted @ 2017-03-27 21:36 gechen 阅读(92) 评论(0) 推荐(0) 编辑

LeetCode : Power of Four

摘要: Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example: Given num = 16, return true. Given num = 5, ... 阅读全文

posted @ 2017-03-27 21:25 gechen 阅读(78) 评论(0) 推荐(0) 编辑

导航