Lingjun Meng's Blog

Life is a long long journey.

Algorithm and Data Structure - Array 01 Two Pointers

Algorithm and Data Structure - Array 01 Two Pointers

Fast and slow pointer Remove Duplicates from Sorted Array 26. Remove Duplicates from Sorted Array 删除排序数组中的重复项 Solution: We can use fast and slow pointer technique. Slow pointer matains a subarray...

Algorithm and Data Structure 01 - Linked List 02

Algorithm and Data Structure 01 - Linked List 02

Using loop to traverse through linked list 206. Reverse Linked List 反转链表 Solution: Use loop to traverse through the linked list and make the successor node pointing to its fater node. 1 2 3 4 ...

Algorithm and Data Structure 01 - Linked List 01

Algorithm and Data Structure 01 - Linked List 01

What is Linked List? A linked list is the most sought-after data structure when it comes to handling dynamic data elements. A linked list consists of a data element known as a node. And each no...

Introduction to Spring

Dive into Spring 01 Introduction to Spring

Table of Contents What is Spring Framework? Why Spring? IoC(Inversion of Control) What is Spring Framework? According to official website spring.io The Spring Framework provides a com...

HashMap Source Code

Dive into JDK 03 HashMap Source Code

Introduction Similar to bubble sort. The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the be...

String Source Code

Dive into JDK 01 String Source Code

Declaration of String 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 public final class String implements java.io.Serializable, Comparable<String>, CharSequence { /** * The va...

Multilayer Perceptrons

MLP

1 Linear Model and Nonlinear Model 1.1 Linear Model Statisticians say that this type of regression equation is linear in the parameters. However, it is possible to model curvature with this type o...

Decision Tree

Decision Tree

Chapter 0 DataSet Outlook Temperature Humidity Windy Play sunny hot high FALSE no sunny h...