Technical Notes
-
232. Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) — Push element x to the ba…
-
Summary of Array Problem-Solving Methods
Related LeetCode problems (easy): 26, 27, 35, 48, 88, 118, 119, 121, 122, 136, 162, 167, 169, 217, 219, 243, 268, …
-
Senior Front-End Engineer Interview – A Checklist for Interview Preparation
I recently received an interview invitation for a front-end development position. As a seasoned developer, I suddenly found myself at a loss. Front-end development is just the HTML + CSS + JS trinity, right? I seem to understand everything, but upon deeper reflection, my knowledge base is actually quite vague. So, I've compiled some materials here, hoping…
-
Detailed Explanation of the `this` Keyword in JavaScript
I've been studying `this` in JavaScript lately and it's gotten a bit confusing, but I found a great article summarizing it, so I'd like to share it: https://segmentfault.com/a/1190000003046071 …
-
The core concepts of CSS
This article, originally from http://geekplux.com/2014/04/25/several_core_concepts_of_css.html, will discuss some of the most core concepts in CSS, including: the box model, position…
-
Summary of LinkedList problem-solving methods
Related LeetCode problems (easy): 2, 21, 82, 83, 86, 141, 160, 203, 206, 234, 237; Medium problem 142. Technique: Two pointers, one moving two steps, the other moving one step…
-
LeetCode – 141. Linked List Cycle
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using ext…
-
LeetCode – 160. Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. …
-
LeetCode – 234. Palindrome Linked List
Given a singly linked list, determine if it is a palindrome. Follow up:Could you do it in O(n) time …
-
LeetCode – 206. Reverse Linked List
Reverse a singly linked list. This question is very basic and requires thorough understanding. /** * Definition for singly-linked list. * public class…
-
LeetCode – 2. Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stor…
-
LeetCode – 21. Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing t…
-
237. Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to th…
-
LeetCode – 86. Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes gr…
-
LeetCode – 203. Remove Linked List Elements
Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 –> …