• Front end interview daily 3 + 1 – day 804


    Today’s knowledge points (June 28, 2021) – day 804 (I also want to write a question) [HTML] use HTML5 to simulate PC wechat chat interface [CSS] implement wavy picture wall with CSS3 [JS] what is the difference between splice () and slice () methods in JS? [soft skill] write a method to generate a number […]

  • Algorithm interview question: how many 7 are there between 1 and 1000?


    I saw a very interesting interview question these two days: the examiner directly asked, 1 to 1000 to how many 7? Requirements, no programming, give the answer directly, and give a simple idea.   C / C + + Learning skirt [712]   two eight four   seven zero five  】, Whether you are Xiaobai […]

  • Bayesian quantile regression, lasso and adaptive lasso Bayesian quantile regression analysis are implemented in R language


    Original link:http://tecdat.cn/?p=22702 abstract Bayesian regression quantile has attracted extensive attention in recent literature. This paper realizes Bayesian coefficient estimation and variable selection in regression quantile (RQ), Bayesian with lasso and adaptive lasso penalty. It also includes the further modeling functions of summarizing the results, drawing the path map, a posteriori histogram, autocorrelation map and drawing […]

  • Bit, byte, word length


    1 data storage The smallest unit of. In the binary number system of a computer, bit, abbreviated asbEach 0 or 1 is a bit. The number of CPU bits in a computer refers toCPUThe maximum number of digits that can be processed at a time. BinaryIn the number system, the bit is abbreviated as B, […]

  • Solution to the problem of precision loss of golang floating point number with expansion package


    PS: there is a problem of precision loss in the precision processing of the project today. Let’s share the solution of the expansion package with you. Note: this problem is possible, not inevitable ① Install expansion pack go get github.com/shopspring/decimal ② How to use it //Set the number of reserved digits first Decimal. Divisionprecision = […]

  • Geohash principle and redis geo related operations


    Principle of geohash calculation Longitude and latitude map: longitudinal line is longitude (- 180 ~ 180), horizontal line is latitude (- 90 ~ 90) Geohash is an address coding method. It can encode the two-dimensional spatial longitude and latitude data into a binary string, and then base32 becomes a short string. With(123.15488794512, 39.6584212421)As an example, […]

  • Data type of MySQL


    value type Integer type of MySQL type Storage space occupied (unit) The value range without sign There is a consistent range of values definition TINYINT 1 0 ~ 2⁸-1 -2⁷ ~ 2⁷-1 A very small integer SMALLINT 2 0 ~ 2¹⁶-1 -2¹⁶ ~ 2¹⁶-1 Small integer MEDIUMINT 3 0 ~ 2²⁴-1 -2²⁴ ~ 2²⁴-1 Medium […]

  • Long common prefix


    subject Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Example 1: Input: [“flower”,”flow”,”flight”] Output: “fl” Example 2: Input: [“dog”,”racecar”,”car”] Output: “” Thinking of solving problems Is a simple problem, the basic idea is to find the minimum […]

  • Have Fun with Numbers


    subject   Topic link      The first time to do all English programming (vocabulary is seriously insufficient, also need to remember more words); The general meaning of the title is: enter an integer with no more than 20 digits, multiply the number by 2, and compare the results before and after calculation to see if […]

  • Some gossip from Prometheus


    Who is Prometheus? From Wikipedia: in Greek mythology, it is one of the gods of the Titans, whose name means “foresight”. Prometheus and Athena, the goddess of wisdom, jointly created human beings. Prometheus was responsible for sculpting human shapes with clay, while Athena poured soul into clay figurines and taught human beings a lot of […]

  • JS regular matching of integers and decimals


    let _ Check = / ^ ([1-9] [D] {0,6} 0) (\. [D] {1,2}) $/; // limit the number of digits before and after the decimal point let _ Check1 = / ^ ([1-9] [D] * | 0) (\. [D] +)? $/; // do not limit the number of digits before and after the decimal point […]

  • Python 7 super practical data cleaning methods, which you must master


    Data cleaning is an essential part of data analysis, in the process of analysis, there will be a lot of data that do not meet the requirements of analysis, such as duplicate, error, missing, abnormal data. 1、 Duplicate value processing Data entry process, data integration process may produce duplicate data, direct deletion is the main […]