Tag:data structure

  • Go – map set


    summary A map set is an unordered key value data structure. The key / value in the map set can be of any type, but all keys must belong to the same data type, all values must belong to the same data type, and the data types of key and value can be different.Declaration map […]

  • Demand online, synchronous database structure & data, with this tool no longer worry!


    background Developers in the development of various needs, the structure of the database and data changes, each time the development is completed, online will synchronize the database structure & data, so need to find out the need to synchronize the database DDL and DML statements, less change is OK. Once the data changes involve many […]

  • [go] gocron source code reading – groutine and channel applied to signal acquisition


    Directly using the go function name () can open a growtin. The channel can receive information and block if there is no dataChannel corresponds to the reference of the underlying data structure, and copy channel and function parameter are copy referencesWhen making, the second parameter is 1, which means that there is a cached channel […]

  • Dewu (poison) app, 8-digit lottery code demand, this is not the math homework left for me by the product!


    Author: Xiao Fu GeBlog:https://bugstack.cnGithub:https://github.com/fuzhengwei/CodeGuide/wiki Precipitation, sharing, growth, so that they and others can gain! 1、 Preface Why is your code a mess? In fact, there are so many from you, why do you write code like this! Why do you have so many for loops in your code? Because there is no reasonable data structure […]

  • Use of. Net core memorycache


        It seems that you can use it directly without nuget package. using Microsoft.Extensions.Caching.Memory;   public static class CacheHelperNetCore { public static IMemoryCache _memoryCache = new MemoryCache(new MemoryCacheOptions()); /// ///Set key value cache /// /// ///Value ///Expiration time public static void SetCache(string key,object obj,TimeSpan timeSpan) { _memoryCache.Set(key,obj,timeSpan); } /// ///Get key value cache /// […]

  • Algorithm – list operation topic routine


    0. Preface Simple topics, but without practice or recitation, may not be able to write out. In an interview, you often finish them in a short time. You don’t have time to draw pictures and deduce them. These can only be quickly completed in your mind. Sometimes after a long time, you feel that you […]

  • Interpretation of pika hash structure


    Title: pika hash table knowledge summarydate: 2021-01-29 13:32:22Author: Li Pengfeitags: pika cache This paper mainly makes a summary of the use of hash data structure in pika. <!–more–> pika360 is an open source non relational database, which is compatible with most of the commands of redis system. Support master-slave synchronization. The main difference is that […]

  • Installation and definition of rdeis


    1、 What is redis? The full name of redis is remote dictionary server (remote dictionary server). It is open source, free, written in C (comply with BSD protocol), single process and multi thread mode. Based on memory running, high performance (key / value) distributed memory database, and support persistent NoSQL database, also known as data […]

  • Index model


    The emergence of index is to improve query efficiency, but there are many ways to achieve index, so the concept of index model is introduced here. There are many data structures that can be used to improve the efficiency of reading and writing. There are three common and relatively simple data structures: hash table, ordered […]

  • Vue + El dynamic column


    design sketch The back end returns the data structure Returned result.labelList It’s a dynamic label. result.list , including all data, where labelmap is the result of the key value pair of the dynamic column. Front end HTML *Template is very important~~ <el-table-column    v-for=”label in labelArr”    :key=”label”    :label=”label”   >     <template slot-scope=”scope”>       <span>{{ scope.row.labelMap[label] }}</span>      </template>    </el-table-column> Front end JS this.labelArr = []; this.$set(this, “labelArr”, res.result.labelList); […]

  • Using swift coredata


    Using coredata 1. Select core data when creating a new project Or add it later.xcdatamodeldfile 2. Get persistentcontainer in appdelegate Make a statementlazyvariablepersistentContainer Pass the model name to the initialization method If there is a store, return the store class AppDelegate: UIResponder, UIApplicationDelegate { … lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: […]

  • Fluent Python [PDF high definition e-book free download]


      Click to get the book extraction code: ds8y [features of this book]   This book is written by Luciano Ramalho, who has been fighting in Python development for nearly 20 years. Python celebrities such as victor stinner and Alex Martelli are the technical reviewers. They analyze the programming details from the level of language […]