2021 January Contest Bronze problem solution

T1 Uddered but not Herd Topic description A little-known fact is that cows have their own words: "Niu Wen". Niu Wen consists of 26 letters' a 'to' z ', but when the cow speaks Niu Wen, it may be different from the familiar' abcdefghijklmnopqrstuvwxyz '. She will arrange the letters in a certain order. To pass the time, Bessie the cow ...

Posted by skizzay on Fri, 03 Dec 2021 10:43:13 -0800

JavaScript built-in objects

JavaScript provides many common built-in objects, including Math, Date, Array, String, and so on. Familiarize yourself with built-in objects by querying documents Open the MDN website and find "Technology" - "JavaScript" in the navigation bar of the website. The effect is as follows. Scroll down the page and find Built ...

Posted by meow on Fri, 03 Dec 2021 10:41:40 -0800

Use the policy + factory pattern to completely kill if else in the code

For business development, the complexity of business logic is inevitable. With the development of business, the requirements will only become more and more complex. In order to consider various situations, many if else will inevitably appear in the code. Once there are too many if else in the code, it will greatly affect its readability and ma ...

Posted by dabas on Fri, 03 Dec 2021 10:39:14 -0800

Vue Foundation (listener)

What are listeners in vue During development, we defined data in the object returned by data, which can be bound to templat through interpolation syntax and other methods.When the data changes, the data bound in the template will be automatically updated to display the latest data. However, this change is transformed by automatically listening ...

Posted by vigge89 on Fri, 03 Dec 2021 10:33:09 -0800

three.js learning notes - Shadows

Shadows have always been a challenge in real-time 3D rendering. Developers must find skills to display real shadows under reasonable circumstances. Three.js has a built-in solution. Although it is not perfect, it is very convenient to use. How does shadow work? When you render once, Three.js will render each light that supports shadows. Those ...

Posted by kaiquej on Fri, 03 Dec 2021 10:12:18 -0800

day01 - Assessment Question daily assignment - JavaSE day 1

## choice question ### Topic 1 (single choice): **The following are computer hardware( D )** #### Options: ​ A. QQ ​ B.WeChat ​ C.FeiQ ​ D.CPU ### Topic 2 (single choice): **The following can be guaranteed java Programs run across platforms( A )** #### Options: ​ A. JVM(java virtual machine) ​ B. Windows system ​ C. Linux sys ...

Posted by ludachris on Fri, 03 Dec 2021 09:49:05 -0800

Common string function implementation! Have your own "library"!

​   Common string function implementation! Have your own "library"! Reviewing a few commonly used strings, I think of a more interesting way to review them, which is to write these commonly used string functions by myself. Although it's common for big guys, it's a happy feeling for me to see my.h file included by #include. Today ...

Posted by thaven on Fri, 03 Dec 2021 09:35:15 -0800

Data Structure (Java) - High Frequency Interview Questions Related to Map and Set

1. Numbers that occur only once Title Description: Given a non-empty integer array, each element occurs twice, except for one element that occurs only once. Find the element that only appears once. Example 1 Input: [2,2,1] Output: 1 Example 2: Input: [4,1,2,1,2] Output: 4 1. Ideas 1. The easiest way to think about it is to determine ...

Posted by Pig on Fri, 03 Dec 2021 09:21:25 -0800

[cf1610G]AmShZ Wins a Bet

The operation on $t $inserts a pair of parentheses in $t $, and the reverse process deletes a pair of parentheses In other words, $s $can be obtained by $t $if and only if $t $can be obtained by deleting several pairs of parentheses in $s $, that is, the problem is to find $\ min t$ Conclusion $\ min t can be obtained by deleting several legiti ...

Posted by Zilvermeeuw on Fri, 03 Dec 2021 09:15:53 -0800

Full text search engine Elasticsearch basic tutorial

Full text search is the most common requirement. Open source Elasticsearch is the first choice of full-text search engines. It can quickly store, search and analyze massive data. Wikipedia, Stack Overflow and Github all use it. At the bottom of elasticsearch is the open source library Lucene. However, you can't use Lucene directly. You must w ...

Posted by Restless on Fri, 03 Dec 2021 09:10:48 -0800