Java reviews common data structures and stacks and queues of common interview questions

Tip: please learn the knowledge points of linked list before reading Java reviews common data structures and arrays and linked lists of common interview questions Stack and queue Stack - First In First Out (FIFO) • Array or Linked ListQueue - First In Last Out (FILO) • Array or Linked List Stack Structural features of first in and la ...

Posted by jds580s on Fri, 08 Oct 2021 11:48:51 -0700

[sword finger Offer] stack and queue

Sword finger Offer 59 - I. maximum value of sliding window Given an array num and the size k of the sliding window, please find the maximum value in all sliding windows. Example: input: nums = [1,3,-1,-3,5,3,6,7], and k = 3 output: [3,3,5,5,6,7] explain: Position of sliding window Maximum --------------- -- ...

Posted by marsupillami on Wed, 06 Oct 2021 19:55:20 -0700

Multiprocessing - multitasking and multiprocessing notes

In the previous section, we talked about the concept of multiprocessing. Just look at multithreading in the previous section. Multi process mainly uses multiprocessing library. The main code flow is as follows 1. Import library: import multiprocessing 2. Create process: t1 = multiprocessing.Process(target=test1) t1.start() import multiprocessi ...

Posted by ManicMax on Sat, 04 Sep 2021 14:40:11 -0700

Abstract data type

1, Concept Table List [interface, implemented]: a sequence (ordered set) composed of N elements of data elements A1, A2, A3... An. There is a precursor successor relationship between data elements. A special table of size 0 is called an empty tableTable implementation Implementation of growable array: once the array is created, it is im ...

Posted by phpcat on Fri, 03 Sep 2021 12:22:04 -0700