IncredibleThings

导航

2020年1月16日 #

LeetCode - Third Maximum Number

摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n). Example 1: Input: [3, 2, 1] Ou 阅读全文

posted @ 2020-01-16 14:26 IncredibleThings 阅读(110) 评论(0) 推荐(0) 编辑

LeetCode - Fizz Buzz Multithreaded

摘要: Write a program that outputs the string representation of numbers from 1 to n, however: If the number is divisible by 3, output "fizz". If the number is divisible by 5, output "buzz". If the number ... 阅读全文

posted @ 2020-01-16 13:33 IncredibleThings 阅读(374) 评论(0) 推荐(0) 编辑