摘要:
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 complexi 阅读全文
阅读排行榜
[Java in NetBeans] Lesson 11. While Loops
2018-12-20 02:30 by Johnson_强生仔仔, 189 阅读, 收藏,
摘要:
这个课程的参考视频和图片来自youtube。 主要学到的知识点有:(the same use in C/C++) 1. while loop while(i < max){} will keep executing if i < max is true, otherwise will jump ou 阅读全文
[LeetCode] 154. Find Minimum in Rotated Sorted Array II_Hard
2018-08-31 07:01 by Johnson_强生仔仔, 187 阅读, 收藏,
摘要:
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). F 阅读全文
[LeetCode] 504. Base 7_Easy tag: Math
2018-08-20 08:47 by Johnson_强生仔仔, 187 阅读, 收藏,
摘要:
Given an integer, return its base 7 string representation. Example 1: Example 2: Note: The input will be in range of [-1e7, 1e7]. 不停除以7, 然后把余数放到ans里面, 阅读全文
[LeetCode] 596. Classes More Than 5 Students_Easy tag:SQL
2018-08-20 03:03 by Johnson_强生仔仔, 187 阅读, 收藏,
摘要:
There is a table courses with columns: student and class Please list out all classes which have more than or equal to 5 students. For example, the tab 阅读全文
浙公网安备 33010602011771号