摘要:
题目: 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 fun 阅读全文
摘要:
题目: Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not printed 阅读全文
摘要:
题目: 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 el 阅读全文
摘要:
题目: Given two arrays, write a function to compute their intersection. Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2]. Note: Each eleme 阅读全文
摘要:
题目: Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, 链接: https://leetcod 阅读全文
摘要:
题目: 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:Give 阅读全文