🔍

Articles

pip Install Third-Party Library Error

When we use Python to develop, we usually use some useful third-party libraries. It is recommended to use pip to install. Under normal circumstances, there is no problem, but some small partners will encounter installation failures such as pip installation of third-party libraries and errors, pip install stuck and other installation failures.

LeetCode Notes: Find All Duplicates in an Array

LeetCode problem solving notes. Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, return an array of all the integers that appears twice.

How to Implement an Event Bus in JavaScript

The Event Bus is usually used as a communication mechanism between multiple modules, which is equivalent to an event bus. One module sends messages, and other modules receive messages, which achieves the function of communication.

LeetCode Notes: Send message

Given the total number of players n, and a two-dimensional array relation formed by the relation [player number, corresponding to passable player number]. Returns the number of solutions in which information is passed from small A (number 0 ) to the small partner numbered n-1 through k rounds.