• ## From scratch, hand in hand teach you to use native JS + CSS3 to realize the fruit machine game

Time：2021-4-14

Project experience address Free video tutorial Introduction to the game Lucky fruit machine is an arcade game. The game interface is made up of 24 squares, each of which has a different fruit graphic and a small light under it. Players use the game currency to choose the target they want to bet on. After […]

• ## Leetcode 70

Time：2021-3-21

Title Requirements: Idea 1: Define the array num with the length of the given n If n is greater than 1, Num [0] is assigned to 1, because there is only one way to go to the first step, that is, to take a step If n is greater than 2, Num [1] is assigned […]

• ## Leetcode interview question 08.01. Three step question Python implementation

Time：2021-2-2

Title Requirements: Thinking: There is a way to go up the first step: (1) 1 There are two ways to go up the second step: (1) 1 + 1 (2) 2 There are four ways to go up the third step: (1) 1 + 1 + 1 (2) 1 + 2 (3) 2 + 1 […]

• ## Leetcode 746. Using the least cost to climb stairs Python implementation

Time：2021-1-21

Title Requirements: Thinking: dynamic programming The minimum amount of physical strength required to go up the current staircase is the lower of the previous staircase and the two previous stairs plus the amount of physical strength required to go up the current staircase Maintain an array DP, which is used to save the physical strength […]

• ## The stair problem of recursion 1

Time：2020-10-5

Don’t talk much nonsense and go straight to the topic Question: Xiaobai is climbing the stairs. There are n steps in the stairs. Xiaobai can go up 1, 2 or 3 steps at a time. Realize a method to calculate how many ways Xiaobai has to walk the stairs. 1) The first way: look for […]

• ## The inputnumber counter component of element UI skips the specified number

Time：2020-8-9

It can be seen from the official documents that this component allows to define the step number control of increment and decrement <template> <el-input-number v-model=”num” :step=”2″ step-strictly></el-input-number> </template> <script> export default { data() { return { num: 2 } } }; </script> However, skipping a specified number is not supported, for example: <template> <el-input-number v-model=”num” […]

• ## Define the wearable device industry standards, and the software green alliance released the step by step evaluation standard for intelligent wearable devices

Time：2020-7-2

In recent years, with the development of 5g and artificial intelligence technology, the isolated objects have been endowed with the attributes of servitization and socialization through mobile network, which has entered a high-speed development stage. Data is no longer lonely data. The data monitored by devices provides support for servitization and socialization, and then optimizes […]

• ## Niuke.com offers [Python implementation] – Part1

Time：2020-7-1

Fibonacci sequence We all know Fibonacci sequence. Now we need to input an integer n. please output the nth term of Fibonacci sequence (starting from 0, item 0 is 0, n < = 39). Loop implementation, time complexity n def Fibonacci(self, n): if n == 0: return 0 if n == 1: return 1 a […]

• ## 100 cases of C programming (1): chicken and rabbit in the same cage

Time：2020-6-18

Chicken and rabbit in the same cage [problem description] A cage contains chickens and rabbits (chickens have two feet, rabbits have four feet, no exception). Given the total number of feet in the cage a, how many animals are there at least and at most? [input data] The first line is the number of test […]

• ## Climbing stairs (Python 3)

Time：2020-6-8

Suppose you are climbing the stairs. It takes n steps for you to reach the top of the building. You can climb one or two steps at a time. How many different ways can you climb to the top of the building?Note: given n is a positive integer. Example 1:Input: 2Output: 2Explanation: there are two […]

• ## CSS3 animation – steps function details

Time：2019-11-10

In recent days, when looking at the source code implementation of some CSS3 animations, I found that there is a strange word steps in the animation of CSS code, which is written in the source code as follows: animation: thunder 2s steps(1, end) infinite; The steps function is found to beanimation-timing-function What’s the difference between […]