Linked list 2: unidirectional circular linked list

When we write the interview, we often struggle with whether to customize the linked list or initialize a linked list first. Generally not required. If it is written on white paper, the normal interviewer will define it for you. If it is a video surface, Niuke and other systems will also be defined. What if you meet someone who has nothing? Oft ...

Added by tiagofrancis on Sun, 16 Jan 2022 10:15:20 +0200

[algorithm question - Sword finger Offer] detailed analysis: image of binary tree and stack containing min function

Image of JZ18 binary tree (simple) subject describe Operate the given binary tree and transform it into a mirror of the source binary tree. For example: source binary tree     8   /     \ 6     10 / \     /   \ 5 7   9  11 Mirror binary tree      8   /      \ 10     6 / \      /  \ 11 9  7 5 Example Input: {8,6,10,5,7,9,11} Return ...

Added by danoli3 on Sun, 16 Jan 2022 10:03:56 +0200

Detailed explanation of BN core parameters of PyTorch

Detailed explanation of BN core parameters of PyTorchOriginal document: https://www.yuque.com/lart/ug...BN is a common operation and module in CNN. In the specific implementation, it contains multiple parameters. This also leads to different effects under different parameter combinations.affineModify during initializationWhen fine is set to Tru ...

Added by __greg on Sun, 16 Jan 2022 08:40:51 +0200

Sword finger offer question set

Statement: the title and figure are from Leecode: https://leetcode-cn.com/ Sword finger offer 3: Duplicate number in array Title: Solution ①: use additional array space. Execution time: 2 ms; Memory consumption: 46.1 MB class Solution { public int findRepeatNumber(int[] nums) { //Create an array with length n and initial ...

Added by aboldock on Sun, 16 Jan 2022 08:24:07 +0200

Container adapter -- queue, stack, priority_queue

What is an adapter adapters play the role of bearing and converter in the flexible combination and application function of STL components. The concept of adapter is actually a design pattern. In the design pattern, the definition of adapter style is as follows: convert one class interface into another class interface, so that classes that ...

Added by slyte33 on Sun, 16 Jan 2022 07:00:39 +0200

Tianchi algorithm race - Guangdong power grid smart field operation challenge race track 3: identifying high-altitude operation and wearing safety belt

Record the problem-solving process of officially participating in the online algorithm competition for the first time. Although I missed the time of B list, I gained a lot! Project introduction Contest link: Track 3 of Guangdong power grid smart field operation challenge: identification of high-altitude operation and wearing of safety bel ...

Added by deception54 on Sun, 16 Jan 2022 03:47:57 +0200

LeetCode -- Target Sum -- backtracking algorithm and dynamic programming -- alloc and mismatch -- the best explanation for non aftereffect and repetitive subproblems

Title Description You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of the symbols '+' and '-' before each integer in nums and then concatenate all the integers. For example, if nums = [2, 1], you can add a '+' before 2 and a '-' before 1 and concatenate them to build th ...

Added by cahamilton on Sun, 16 Jan 2022 01:31:57 +0200

Python solves Google highway recruitment advertisement: {the top ten consecutive prime numbers in irrational number e} com

Occasionally, I saw such a story in Mr. Wu Jun's top of the wave (Fourth Edition).Google once advertised on the 101 highway in California with a large billboard:{the first ten consecutive prime numbers in irrational number e} comIf you know the answer (7427466391.com), you can enter Google's recruitment website through the above website. And it ...

Added by bcamp1973 on Sat, 15 Jan 2022 21:37:10 +0200

Basic principles and python implementation of six common sorting algorithms (bubble sorting, selection sorting, quick sorting, insertion sorting, merge sorting, Hill sorting)

The most basic algorithm should be the sorting algorithm. Today, let's briefly introduce several common sorting algorithms Bubble sorting Bubble sorting visits the sorted element list once every round, and compares two adjacent elements in turn. If the order of the two elements is incorrect, exchange them and adjust the order. In this ...

Added by resago on Sat, 15 Jan 2022 20:50:30 +0200

Array 1: Array base

1. Basic operations for one-dimensional arrays One-dimensional arrays are the most basic data structure, and regular array interviews are easy to learn how to do it. The main challenge lies in the handling of boundaries. There are more than 360 titles for arrays in leetcode, but arrays are carriers of a large number of advanced algorithms, and ...

Added by gr8dane on Sat, 15 Jan 2022 20:28:32 +0200