Java description LeetCode, 98 Validate binary search tree
Hello everyone, I'm hehaige and focus on the back end. If I can, I want to be a code designer instead of an ordinary coder to witness the growth of hehaige. Your comments and praise are my biggest driving force. If you have any mistakes, please don't hesitate to comment. Thank you very much. Let's support the original! If there is a clerical er ...
Posted by Ofro04 on Mon, 03 Jan 2022 14:02:28 +0100
[data structure and algorithm] in-depth analysis of the solution idea and algorithm example of "stone game V"
1, Title Description
Several stones are arranged in a row. Each stone has an associated value. The associated value is an integer, which is given by the array stoneValue.Each round of the game: Alice will divide the line of stones into two non empty lines (i.e. the left line and the right line); Bob is responsible for calculating the value of ...
Posted by Hobgoblin11 on Mon, 03 Jan 2022 09:08:51 +0100
Data structure learning plan W1
Will share some classic exercises and solutions being done, and write your own understanding if you are interested. If you are interested, you can refer to it.
There are duplicate elements
Given an integer array, determine whether there are duplicate elements. If a value exists and appears in the array at least twice, the function returns ...
Posted by Viper76 on Mon, 03 Jan 2022 02:20:32 +0100
LeetCode - sum of three (double pointer)
preface
This week, I share a double pointer related algorithm problem. The author's level is limited. If you have any questions, please leave a message at the bottom of the article! Key words: double pointer.
subject
Sum of three Give you an array num containing n integers. Judge whether there are three elements a, b and c in num, so tha ...
Posted by timtom3 on Mon, 03 Jan 2022 01:33:27 +0100
Leetcode question brushing diary: 11-15 questions
brief introduction
The author graduated from Xi'an Jiaotong University in 2021 and will continue to study postgraduate in this university in September of the same year. After experiencing the intense and exciting job search process of some students around him, the 60w + offer and 30w offer are greatly related to his ability to tear the cod ...
Posted by malikah on Sun, 02 Jan 2022 14:29:47 +0100
Solution to the 273rd weekly game of Leetcode
The first time I played leetcode, I played virtual, and briefly talked about the ideas of each question. Number reversed twice Main idea: judge whether a number is still the original number after being flipped twice, and remove the leading zero after flipping.
As long as the last bit is not zero, there must be no change in flipping twice. It i ...
Posted by saeed99 on Sun, 02 Jan 2022 12:26:17 +0100
LeetCode problem brushing learning
First day of study
I use C + +, please forgive me for the mistakes. The original intention of the article is only to urge me to study. If it happens to be able to help you, I will be very happy.
preface
1, 141 Circular linked list
Title: give you a head node of the linked list to judge whether there are links in the linked list. ...
Posted by nainil on Sun, 02 Jan 2022 06:21:54 +0100
leetcode_987. Vertical traversal of binary tree -- leetcode's way to brush questions
Title Description
Give you the root node of the binary tree, root. Please design an algorithm to calculate the vertical traversal sequence of the binary tree.
For each node located in (row, col), its left and right child nodes are located in (row + 1, col - 1) and (row + 1, col + 1). The root node of the tree is located at (0, 0).
The ve ...
Posted by Stopofeger on Sat, 01 Jan 2022 16:28:42 +0100
C + + Notes 9: linked list
P.S is a non professional and unfamiliar with C + + and algorithms. Starting from the introduction, he uses the Leetcode platform and draws on the ideas of many predecessors. The blog is only for recording. Three questions in this issue's punch list: corresponding to < sword finger Offer 06 Print linked list from end to end > < sword f ...
Posted by iraja on Sat, 01 Jan 2022 07:39:27 +0100
leetcode algorithm problem brushing report (calculation of date)
catalogue
👻 Methods used this time
🤷♀️ first leap year determination
🤷♂️ second effectively handles Runping year
👍 third # day period comparison days
🐹 Problems and Solutions
🧐 Topic 1
😒 Topic 2
😶 Topic 3
👻 Methods used this time
🤷♀️ first leap year determi ...
Posted by hawleyj on Fri, 31 Dec 2021 14:42:43 +0100