摘要:
一般的题 class Solution(object): def letterCombinations(self, digits): """ :type digits: str :rtype: List[str] """ dic = { "2": "abc", "3": "def", "4":"gh 阅读全文
摘要:
1. 讨论用户是谁电话、网络、p0 (mvp) 要求是什么 2. 根据用户讨论feature功能性需求:eg用户应该能够发布新推文,用户应该能够关注其他用户非功能需求:一致性还是可用性?Consistency or Availability?实时还是批量?Real-time or batch?重读还 阅读全文
摘要:
基础的三个模板:traverse, dc, bst 【traverse模板】 题:700. Search in a Binary Search Tree 在bst中返回目标所在的最小子树 class Solution { public TreeNode searchBST(TreeNode root 阅读全文
摘要:
202208面试常考 算法题lz自己遇到的高频题型有:LRU,超高频,lz后面真的是闭着眼睛能写出来的程度了DFS/BFS,最常见的算法,一定要掌握Union-Find,多次考到双指针/滑动窗口,套路就那么多,但是也很常见dp相关的题我没有刷非常多,但是常见的股票买卖问题这种一定要吃透,也是高频题型 阅读全文
摘要:
StatusTitleSolutionAcceptanceDifficultyFrequency438. Find All Anagrams in a String50.0%Medium200. Number of Islands56.7%Medium2421. Number of Good Pat 阅读全文
摘要:
public class Solution { public String minWindow(String s, String t) { if(s == null || s.length() < t.length() || s.length() == 0){ return ""; } HashMa 阅读全文
摘要:
You are given an inclusive range [lower, upper] and a sorted unique integer array nums, where all elements are in the inclusive range. A number x is c 阅读全文
摘要:
Design and implement an iterator to flatten a 2d vector. It should support the following operations: next and hasNext. Example: Vector2D iterator = ne 阅读全文
摘要:
Given a string s and an integer k, return the length of the longest substring of s that contains at most k distinct characters. Example 1: Input: s = 阅读全文
摘要:
吐血了 public class Account{ String id; String name; List<Address> addresses; } public class Address{ String street; String city; String country; Address 阅读全文
摘要:
1348. Tweet Counts Per Frequency Medium 130231Add to ListShare A social media company is trying to monitor activity on their site by analyzing the num 阅读全文
摘要:
You have a browser of one tab where you start on the homepage and you can visit another url, get back in the history number of steps or move forward i 阅读全文
摘要:
There are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei] indicates that there is 阅读全文
摘要:
You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can 阅读全文