正文内容加载中...
摘要: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 阅读全文
摘要: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 阅读全文
摘要:Methodology: READ MF! [Originally from the Post: System design interview: how to design a chat system (e.g., Facebook Messenger, WeChat or WhatsApp)] 阅读全文
摘要: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 阅读全文
摘要: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 阅读全文
摘要: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 阅读全文
摘要: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 阅读全文
摘要: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 阅读全文
摘要: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 阅读全文
摘要:Problem Statement Problem Vestigium means "trace" in Latin. In this problem we work with Latin squares and matrix traces. The trace of a square matrix 阅读全文