Explanation of Leetcode UHF questions

High frequency questions (I) 1, Reverse linked list (206) Title Description: Note: the more accurate expression should be that the result of inversion is 1 โฌ… two โฌ… three โฌ… four โฌ… 5. In other words, the node value cannot be simply changed 1. Double pointer iteration Idea: Create two pointers pre and cur. Pre initially points to nu ...

Posted by brett on Sat, 22 Jan 2022 00:03:31 +0100

[leetcode SQL daily practice] - 181 Employees who exceed the manager's income

๐ŸŽˆ Write in front ย  ๐Ÿ™‹โ€โ™‚๏ธ Hello everyone, I'm super dream. We all know that we have to deal with the database almost every day, whether in study or daily work. In order to better operate the database, our SQL knowledge reserve is essential. If you want to master SQL well, you must practice and study every day. Next, Xiaomeng will le ...

Posted by truck7758 on Fri, 21 Jan 2022 22:40:04 +0100

No aftereffect of dynamic programming

Did you write this because 2021.7.10 biweekly match of force buckle The fourth question was written with memorization + deep search, but there have been several examples that can't pass. I saw another question solution when I was troubled Why can't mnemonic search get a positive solution? It dawned on me. I hereby make a record No aftereffe ...

Posted by xmrcivicboix on Fri, 21 Jan 2022 22:36:28 +0100

[case of algorithm thousand questions] practice LeetCode punch in once a day - 101 Long press and type

๐Ÿ“ข preface ๐Ÿš€ Algorithm problem ๐Ÿš€ ๐ŸŒฒ Punching out an algorithm problem every day is not only a learning process, but also a sharing process ๐Ÿ˜œ๐ŸŒฒ Tip: the problem-solving programming languages in this column are C# and Java๐ŸŒฒ To maintain a state of learning every day, let's work together to become the great God of algorithm ...

Posted by khujo56 on Fri, 21 Jan 2022 16:39:11 +0100

High frequency questions - Special Topics on Interval related issues

The blog refers to the following Blogs: https://emre.me/coding-patterns/merge-intervals/ https://leetcode.com/discuss/general-discussion/794725/General-Pattern-for-greedy-approach-for-Interval-based-problems/658450 Interval means interval in Chinese, which can be understood as interval. Many in life can be described as intervals, such as mee ...

Posted by cuboidgraphix on Fri, 21 Jan 2022 10:29:50 +0100

[selected sword fingers] the problem of "symmetric binary tree" from a macro perspective

Title Description This is the * * JZ 58 symmetric binary tree on Niuke. The difficulty is * *. Tag: "sword finger Offer", "binary tree", "sequence traversal", "iteration", "recursion" Description: Please implement a function to judge whether a binary tree is symmetrical. Note that if a bina ...

Posted by adrive on Fri, 21 Jan 2022 10:22:20 +0100

Leetcode algorithm solution series - minimum stack

This topic aims to share some interesting or valuable topics found in the process of brushing Leecode. [of course, the answer is based on js].Topic relatedOriginal title addressTitle Description:To define the data structure of the stack, please implement a min function that can get the smallest element of the stack in this type. In this stack, ...

Posted by ppera on Thu, 20 Jan 2022 19:26:24 +0100

Special summary of LeetCode sword finger Offer II prefix tree

๐Ÿ“š Blog home page: โญ This is a little Yibai blog duck~ โญ ๏ธ๐Ÿ‘‰ Welcome to pay attention โค๏ธ give the thumbs-up ๐Ÿ‘ Collection โญ Comments ๐Ÿ“๐Ÿ˜œ Xiaoyibai is preparing for his internship. He often updates the interview questions and LeetCode solutions. Friends with similar interests are welcome to communicate with each other~ ๐Ÿ’™ If you have any ...

Posted by Huuggee on Wed, 19 Jan 2022 22:05:18 +0100

LeetCode-138 - copy linked list with random pointer

Copy linked list with random pointer Title Description: give you a linked list with a length of n. each node contains an additional random pointer random, which can point to any node or empty node in the linked list. Construct a deep copy of this linked list. The deep copy should consist of exactly n new nodes, in which the value of each new n ...

Posted by dman779 on Wed, 19 Jan 2022 08:26:42 +0100

Follow left theological algorithm

Only as personal study notes, don't spray! 1. Given an array and a reference value, it is required that less than the reference value is on the left of the array, equal to the reference value is in the middle, and greater than the reference value is on the right public static int[] hierarchy(int[] nums,int equivalent){ /* 1.If the curr ...

Posted by xadmin on Wed, 19 Jan 2022 04:56:05 +0100