[Java data structure] binary tree classic OJ interview questions - brush notes + problem solving ideas

πŸ“’ Blog home page: πŸ€ Bryant typing the codeπŸ€ πŸ“’ Welcome to praise πŸ‘ Collection ⭐ Leaving a message. πŸ“ Welcome to discuss! πŸ‘ πŸ“’ This article was originally written by [Bryant who knocked the code], and was first launched in CSDN πŸ™‰πŸ™‰πŸ™‰ πŸ“’ Since the blogger is learning Xiaobai, there will inevitably be mistakes. If you have any questions, ...

Added by wacook on Wed, 01 Dec 2021 07:20:51 +0200

leetcode lecture on algorithm interview in Dachang 14. Sorting algorithm

leetcode lecture on algorithm interview in Dachang 14. Sorting algorithm Video Explanation (efficient learning): Click to learn catalog: 1. Introduction 2. Time and space complexity 3. Dynamic planning 4. Greed 5. Binary search 6. Depth first & breadth first 7. Double pointer 8. Sliding window 9. Bit operation 10. Recursion & divide and ...

Added by goatboy on Wed, 01 Dec 2021 06:48:02 +0200

LeetCode-133-clone graph

Clone graph Title Description: give you a reference to a node in an undirected connected graph. Please return a deep copy (clone) of the graph. Each node in the graph contains its value val (int) and a list of its neighbors (list[Node]). See LeetCode's official website for an example. Source: LeetCode Link: https://leetcode-cn.com/problems/clo ...

Added by buildernaut1 on Mon, 29 Nov 2021 20:10:34 +0200

leetcode of algorithm interview in Dachang 9. Bit operation

leetcode of algorithm interview in Dachang 9. Bit operation Video tutorial (efficient learning): Click to learn catalog: 1. Introduction 2. Time and space complexity 3. Dynamic planning 4. Greed 5. Binary search 6. Depth first & breadth first 7. Double pointer 8. Sliding window 9. Bit operation 10. Recursion & divide and conquer 11 Prun ...

Added by mccormr7 on Mon, 29 Nov 2021 02:51:21 +0200

Analysis of wrong questions in the 269th weekly game of LeetCode

Week 269 race The topic is very simple. There are only three questions, and the fourth one is a little short. I'm still too good. I'll continue to work hard to train my thinking and speed. 5938. Find the target subscript after array sorting class Solution(object): def targetIndices(self, nums, target): """ :type nums ...

Added by Fergal Andrews on Sun, 28 Nov 2021 08:50:58 +0200

[algorithm interview dictionary] top ten classic sorting algorithms - bucket sorting

1. Problem solving ideas Β  Β  Β  Β  Bucket sorting is one of the simplest sorting algorithms. Bucket sorting has many similarities and origins with counting sorting and cardinal sorting. The important thing of bucket sorting is its idea, not its specific implementation. For different elements to be sorted, the specific implem ...

Added by josh on Fri, 26 Nov 2021 12:31:28 +0200

leetcode notes

1.Hash related When using HashMap, why can you find the corresponding value according to map.get(key) with time complexity O(1)? Because the physical structure uses a hash table Calculate the array position where the Entry should be stored according to a special algorithm. If the positions are the same, there are various methods to solve the ...

Added by deejay1111 on Wed, 24 Nov 2021 18:54:55 +0200

Dichotomy - leetCode-35. Search insertion location - 278. First wrong version - 704. Dichotomy search - Java problem solution

35. Search insertion position Given a sort array and a target value, find the target value in the array and return its index. If the target value does not exist in the array, returns the position where it will be inserted in order. You must use an algorithm with a time complexity of O(log n). Example 1: Input: num = [1,3,5,6], target = ...

Added by rmt123 on Wed, 24 Nov 2021 12:43:41 +0200

[algorithm thousand question case] daily LeetCode punch in - 83. Student attendance record I

πŸ“’ 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 ...

Added by phplearner on Wed, 24 Nov 2021 06:19:53 +0200

Leetcode.239. Maximum value of sliding window --- violence / optimized violence / monotone queue

239. Maximum value of sliding window Give you an integer array nums, with a sliding window of size k moving from the leftmost side of the array to the rightmost side of the array. You can only see k numbers in the sliding window. The sliding window moves only one bit to the right at a time. Returns the maximum value in the sliding window. Ex ...

Added by alexcrosson on Tue, 23 Nov 2021 03:23:56 +0200