JUC concurrent programming and source code analysis

1, AQS(AbstractQueuedSynchronizer) Abstract queue synchronizer Pre knowledge: Fair lock and unfair lockReentrant lockSpin lockLockSupportLinked list of data structureTemplate design mode of design mode 1.1 what is it? Abstract queue synchronizer It is a heavyweight basic framework used to build locks or other synchronizer components and ...

Posted by johnnyboy16 on Tue, 30 Nov 2021 18:46:37 +0100

Complete leetcode intensive lecture on algorithm interview of large factory 12. Pile

leetcode lecture on algorithm interview in Dachang 12. Heap 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 conquer 11 P ...

Posted by carlosx2 on Tue, 30 Nov 2021 05:39:14 +0100

[algorithm thousand question case] daily LeetCode punch in - 86. Create string according to binary tree

๐Ÿ“ข 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 farzal on Mon, 29 Nov 2021 17:31:10 +0100

Force buckle around knot 04 - as deep as the sea

It feels great to punch in!! Harvest is full, every day has a sense of mission to get up early!! November is coming to an end, and my trip to Li Kou is only a one-day absence. I hope to continue my efforts next month and stick to it!! Learn the recursive traversal of binary tree and hang these questions Preorder traversal recursion pub ...

Posted by ectraz on Mon, 29 Nov 2021 04:57:26 +0100

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 con ...

Posted by jabapyth on Mon, 29 Nov 2021 01:37:09 +0100

Detailed analysis of Array algorithm problem

Detailed analysis of Array algorithm problem Array related algorithm problems are relatively high frequency. Through this paper, I hope it can be helpful to your array related algorithm ability. Find the largest and smallest elements in a given array Problem Description: Give you an array of numbers. You need to find the minimum and ma ...

Posted by Aeglos on Sun, 28 Nov 2021 12:51:13 +0100

[data structure] linked list 04: LeetCode 21. Merge two ordered linked lists, LeetCode 23. Merge K ascending linked lists

1, LeetCode 21. Merge two ordered linked lists Method 1: iteration Code and performance class Solution { public ListNode mergeTwoLists(ListNode l1, ListNode l2) { ListNode dummy = new ListNode(-1); ListNode p = dummy; ListNode p1 = l1; ListNode p2 = l2; while(p1 != null && p2 != null){ ...

Posted by troybtj on Sun, 28 Nov 2021 09:21:52 +0100

[LeetCode learning plan] algorithm introduction C + + day 9 breadth first search / depth first search

542.01 matrix LeetCode in etc. \color{#FFB800} {medium} secondary Given a matrix mat composed of 0 and 1, please output a matrix of the same size, where each lattice is the distance ...

Posted by webzyne on Sun, 28 Nov 2021 06:11:07 +0100

[ten thousand people premise plan] exhaustive search of 100 cases of introduction to C language (case 27) - exercises (C language) (super simple and easy to understand) ฯ† (ใ‚œโ–ฝใ‚œ*)โ™ช

Article catalog catalogue Article catalog Zero, write in front 1, The number of statistical digits is even 2, A single element in an ordered array 3, Adjust the array order so that odd numbers precede even numbers Zero, write in front This chapter is just a review: this chapter mainly describes the methods of exhaustive search [questi ...

Posted by mcmuney on Sun, 28 Nov 2021 04:53:14 +0100

LeetCode-131 split palindrome string

Split palindrome string Title Description: give you a string s. please divide s into some substrings so that each substring is a palindrome string. Returns s all possible segmentation schemes. A palindrome string is a string that reads the same forward and reverse. See LeetCode's official website for an example. Source: LeetCode Link: https:// ...

Posted by depraved on Sun, 28 Nov 2021 03:09:39 +0100