二叉树锯齿形层次遍历

BFS 增加 order。 ...

May 30, 2020 · 1 min · 118 words · itibbers

11个class选择器可以干掉1个id选择器吗

今天遇到一个有趣的问题,class 选择器权重是 10,id 选择器权重是 100,那么 11 个 class 选择器可以干掉 1 个 id 选择器吗?😂 ...

May 27, 2020 · 1 min · 120 words · itibbers

js链式调用和流程控制

实现new Person('xiaoming').say('hello').sleep(2).play('js').sleep(1).say('hhh') ...

May 11, 2020 · 1 min · 113 words · itibbers

实现中文排序、数字英文混合排序

JS 排序:localeCompare() 方法实现中文排序、sort 方法实现数字英文混合排序 ...

March 9, 2020 · 2 min · 307 words · itibbers

动态规划模板

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. ...

March 2, 2020 · 8 min · 1533 words · itibbers

链表问题集锦

链表问题在面试过程中也是很重要也很基础的一部分,链表本身很灵活,很考查编程功底,所以是很值得考的地方。我将复习过程中觉得比较好的链表问题整理了下。 ...

September 2, 2019 · 4 min · 654 words · itibbers

Vue methods vs watchers vs computed properties

Vue.js provides us watch, computed and methods properties. When to use one vs the other? ...

August 22, 2019 · 1 min · 202 words · itibbers

Vue组件通信与数据传递

Vue 组件通信整理: ...

August 19, 2019 · 1 min · 196 words · itibbers

vue-programmatic-navigation-issue

Question: $router.push({query})/replace not updating the URL. ...

April 2, 2019 · 1 min · 127 words · itibbers

爬楼梯问题

今天在脉脉上看到有个段子手 HR 说: 今天沟通了一位候选人,他给我出了个题,说答对了就把简历给我[笑哭][笑哭]各位大佬帮帮忙[抱拳][抱拳] 一个人爬楼梯,每次只能爬 1 个或 2 个台阶,假设有 10 个台阶,那么这个人有多少种不同的爬楼梯方法? 我只想在楼梯顶端等你,不想知道是怎么爬的[流泪][流泪] ...

February 19, 2019 · 1 min · 74 words · itibbers