二叉树锯齿形层次遍历
BFS 增加 order。 ...
BFS 增加 order。 ...
今天遇到一个有趣的问题,class 选择器权重是 10,id 选择器权重是 100,那么 11 个 class 选择器可以干掉 1 个 id 选择器吗?😂 ...
实现new Person('xiaoming').say('hello').sleep(2).play('js').sleep(1).say('hhh') ...
JS 排序:localeCompare() 方法实现中文排序、sort 方法实现数字英文混合排序 ...
Before starting the topic let me introduce myself. I am a Mobile Developer currently working in Warsaw and spending my free time for interview preparations. I started to prepare for interviews two years ago. At that time I should say I could not solve the two sum problem. Easy problems seemed to me like hard ones so most of the time I had to look at editorials and discuss section. Currently, I have solved ~800 problems and time to time participate in contests. I usually solve 3 problems in a contest and sometimes 4 problems. Ok, lets come back to the topic. Recently I have concentrated my attention on Dynamic Programming cause its one of the hardest topics in an interview prep. After solving ~140 problems in DP I have noticed that there are few patterns that can be found in different problems. So I did a research on that and find the following topics. I will not give complete ways how to solve problems but these patterns may be helpful in solving DP. ...
链表问题在面试过程中也是很重要也很基础的一部分,链表本身很灵活,很考查编程功底,所以是很值得考的地方。我将复习过程中觉得比较好的链表问题整理了下。 ...
Vue.js provides us watch, computed and methods properties. When to use one vs the other? ...
Vue 组件通信整理: ...
Question: $router.push({query})/replace not updating the URL. ...
今天在脉脉上看到有个段子手 HR 说: 今天沟通了一位候选人,他给我出了个题,说答对了就把简历给我[笑哭][笑哭]各位大佬帮帮忙[抱拳][抱拳] 一个人爬楼梯,每次只能爬 1 个或 2 个台阶,假设有 10 个台阶,那么这个人有多少种不同的爬楼梯方法? 我只想在楼梯顶端等你,不想知道是怎么爬的[流泪][流泪] ...