## Algorithm summary for generating permutations

Summary I think my algorithm thinking ability is a little weak, so I will basically do 1-2 to leetcode algorithm problems every night. There's a problem with alignment these two days.—— Next Permutation . Then I went to search for the algorithm to generate the permutation. Here is a summary. algorithm At present, the following algo ...

Posted on Wed, 16 Oct 2019 07:19:04 -0700 by Royalmike

## How to add custom column for CSDN VIP

A few months ago, I started a blog on csdn, one is to add a few poor traffic to myself, and the other is to let the original articles on the public account get more exposure and let the students in need see them. All the students who have written csdn blog know that by default, there is only the function of reward c currency; there is no specia ...

Posted on Tue, 15 Oct 2019 12:49:55 -0700 by Nhoj

## How to de duplicate array slices by Go

The Go standard library itself does not provide a function to remove duplicate elements from slice, which needs to be implemented by itself. The following provides an implementation idea. If there is a better implementation method, please leave a message for discussion. package main import ( "fmt" ) func main() { s := []string{"hello" ...

Posted on Tue, 15 Oct 2019 09:32:26 -0700 by angelcool

## Golang's interface Exploration

Goang has been criticized the most. No generic should be counted as one. As a strongly typed language, the absence of generics often makes business development inappropriate, but it has an interfaceTypes are used by many people as generics, and if you understand their principles, it's okay.But do you really understand? Interface golang Mediumin ...

Posted on Sun, 13 Oct 2019 20:20:59 -0700 by Gnub

## Type Judgment of Empty interface

Empty interfaces can store any type of data, and when you need to determine what type it is, you can use the following methods. 1 Direct assertion For example, we receive a variable unknown of type interface {}, which can be directly asserted as a string type by the following code: val, ok := unknow.(string) If the return ok is true, the variab ...

Posted on Sat, 12 Oct 2019 10:17:55 -0700 by oscar2

## Weekly algorithmic problem 006: Lottery combination

Question: There are three teams, each with two players.team1:A,B;team2:C,D;team3:E,F; Now there is one person in each team to form a team to explore. Please list all the ways to form a team. Train of thought: This is a combination problem. If you choose one person in each team, there should be 222 = 8 combinations.If the solution is violent, i ...

Posted on Fri, 11 Oct 2019 12:53:52 -0700 by jsims

Using go help build mode, we can see that go can be built in many ways, using static link libraries by default. ➜ src go help buildmode The 'go build' and 'go install' commands take a -buildmode argument which indicates which kind of object file is to be built. Currently supported values are: -buildmode=archive Build the ...

Posted on Tue, 08 Oct 2019 05:10:21 -0700 by Dennis Madsen

## The most popular explanation of dependency injection

This article explains what dependency injection (also known as inversion of control) is and how it improves the code that defines business logic. Services and dependencies Services can be classes you write, or classes from import libraries. For example, it could be a logger or a database connection. Therefore, you can write a service that can r ...

Posted on Sat, 05 Oct 2019 22:40:31 -0700 by coditoergosum

## Weekly algorithmic question 009: Date of finding binary symmetry

Title: The year, month and day are expressed as 8-bit integers such as YYYYMMDD. Then the integers are converted into binary digits and arranged in reverse order. Then the binary digits are converted into decimal digits, and the same date as the original date is obtained. The date should be between the last Olympic Games (October 10, 1964) and ...

Posted on Tue, 01 Oct 2019 16:28:08 -0700 by my800stuff

## Etaifang mining source code: ethash algorithm

Chain customer, specially for developers, there are questions to answer! This article is from Block Chain Technology Community No reprinting without permission. EthashWe analyzed the source code of the mining in Yitaifang, dug a pit of consensus engine, and studied the algorithm of DAG directed acyclic graph, which are the basis of Ethash. Etha ...

Posted on Thu, 26 Sep 2019 02:16:03 -0700 by suncore