摘要:
LeetCode解题思路汇总(loading......) 做个记录啦📝 4 Hard Median of Two Sorted Arrays 10 Hard Regular Expression Matching 221 Medium Maximal Square 222 Medium Coun 阅读全文
摘要:
题目描述 LeetCode原题链接:221. Maximal Square Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its 阅读全文
摘要:
题目描述 LeetCode原题链接:222. Count Complete Tree Nodes Given the root of a complete binary tree, return the number of the nodes in the tree. According to Wi 阅读全文
摘要:
题目描述 LeetCode原题链接:10. Regular Expression Matching Given an input string s and a pattern p, implement regular expression matching with support for '.' 阅读全文
摘要:
题目描述 LeetCode原题链接:4. Median of Two Sorted Arrays Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two so 阅读全文
摘要:
题目描述 LeetCode原题链接:287. Find the Duplicate Number Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] i 阅读全文
摘要:
前言 话不多说,先放题: 1 for(var i = 1; i <= 5; i++) { 2 setTimeout(function timer() { 3 console.log(i); 4 }, i * 1000); 5 } 上面这段代码相信各位一定不陌生。每个准备过前端面试的同学一定看到过这道 阅读全文
摘要:
一个真实的故事 以前上学的时候各种课设作业基本上都是单打独斗地“独立”开发,就算是小组合作,也基本上个人负责个人的开发模块,并不是真正意义上的“多人协作开发”,因此对项目的分支管理一直不是很熟悉......于是,在入职的第二个月,第一次进行多人协作开发时,出了一个小小的状况: 当时有一个大项目因为工 阅读全文
摘要:
前言 git merge和git rebase都用来从一个分支获取内容并合并到当前分支,但它们采用不同的策略来进行「合并」操作。 开始之前,我们先来模拟一个日常开发中很常见的场景:假设远程分支dev已经有了两个提交C1和C2,我们基于这个分支创建feature分支进行功能开发。 我们在自己的feat 阅读全文
摘要:
题目描述 有n个水桶,第i个水桶里面水的体积为Ai,你可以用1秒时间向一个桶里添加1体积的水。 有q次询问,每次询问一个整数pi,你需要求出使其中pi个桶中水的体积相同所花费的最少时间。 对于一次询问如果有多种方案,则采用使最终pi个桶中水的体积最小的方案。 示例1 输入:4,3,[1,2,3,4] 阅读全文