正文内容加载中...
posted @ 2019-05-29 19:32 包子模拟面试 阅读(188) 评论(2) 推荐(0) 编辑
摘要:Problem Statement Given an array nums, return true if the array was originally sorted in non-decreasing order, then rotated some number of positions ( 阅读全文
posted @ 2021-02-16 12:23 包子模拟面试 阅读(34) 评论(0) 推荐(0) 编辑
摘要:Problem Statement Given two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minute hand. Example 1: I 阅读全文
posted @ 2020-07-21 13:41 包子模拟面试 阅读(127) 评论(0) 推荐(0) 编辑
摘要:Problem Statement Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Examp 阅读全文
posted @ 2020-07-19 06:26 包子模拟面试 阅读(208) 评论(0) 推荐(0) 编辑
摘要:Methodology: READ MF! [Originally from the Post: System design interview: how to design a chat system (e.g., Facebook Messenger, WeChat or WhatsApp)] 阅读全文
posted @ 2020-06-22 12:02 包子模拟面试 阅读(173) 评论(0) 推荐(0) 编辑
摘要:Problem Statement You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at 阅读全文
posted @ 2020-06-15 03:59 包子模拟面试 阅读(80) 评论(0) 推荐(0) 编辑
摘要:Problem Statement You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only cons 阅读全文
posted @ 2020-06-15 02:04 包子模拟面试 阅读(62) 评论(0) 推荐(0) 编辑
摘要:Problem Statement Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by 阅读全文
posted @ 2020-05-26 06:16 包子模拟面试 阅读(462) 评论(0) 推荐(0) 编辑
摘要:Problem Statement There are a total of numCourses courses you have to take, labeled from 0 to numCourses-1. Some courses may have prerequisites, for e 阅读全文
posted @ 2020-05-18 08:03 包子模拟面试 阅读(181) 评论(0) 推荐(0) 编辑
摘要:Problem Statement Problem Cameron and Jamie's kid is almost 3 years old! However, even though the child is more independent now, scheduling kid activi 阅读全文
posted @ 2020-05-11 15:25 包子模拟面试 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Problem Statement Problem tl;dr: Given a string of digits S, insert a minimum number of opening and closing parentheses into it such that the resultin 阅读全文
posted @ 2020-05-11 06:50 包子模拟面试 阅读(187) 评论(0) 推荐(0) 编辑