Write lisp interpreter in java (10 implementation objects and classes)
In the process of implementing the interpreter, I found a fun thing, that is, how to better use the object-oriented idea to write code, and think about how to define a set of templates. Before starting again, I sorted out two kinds of object-oriented templates.One is a java style template(class classname (superclass) (. field) (
func t()(
...
Posted by timcapulet on Sat, 19 Feb 2022 10:59:36 +0100
Blue Bridge Cup: running exercise (java code)
Blue Bridge Cup: running exercise algorithm (java)
This article is only for reference, because the blogger is very delicious, so the method is very stupid. I hope the bosses can put forward valuable opinions!!! thank you!!!
Original title
This question is a blank filling question. You only need to calculate the result and use the output stat ...
Posted by smixcer on Sat, 19 Feb 2022 10:50:17 +0100
Initial review-1
Initial review
Process control
if -else
package Initial_practice;
import java.util.Scanner;
/*
Suppose you want to develop a lottery game. The program randomly generates a two digit lottery, prompts the user to enter a two digit lottery, and then determines whether the user can win according to the following rules.
1)If the number ent ...
Posted by TheDumbNerd on Sat, 19 Feb 2022 10:44:53 +0100
Topic + source code analysis (81 examples)
[Title 81]
Title: a company uses a public telephone to transmit data. The data is a four digit integer and is encrypted in the transmission process. The encryption rules are as follows: add 5 to each number, then replace the number with the remainder of sum divided by 10, and then exchange the first and fourth bits, and the second and third bi ...
Posted by Pavel_Nedved on Sat, 19 Feb 2022 10:43:34 +0100
[Linux] producer consumer model
summary
Producer consumer model: a typical design pattern, which is a solution designed by people according to typical scenes
Application scenario: it is applied to the scenario where a large amount of data is generated and processed
Specific implementation: there are multiple producer and consumer threads to produce and process a huge amoun ...
Posted by seeker2921 on Sat, 19 Feb 2022 10:40:25 +0100
Python crawler journey: an introduction to crawlers that beginners can understand
What is a reptile
Crawler is to grab the information in the web page according to certain rules. The crawler process is roughly divided into the following steps:
Send request to target pageGet the response content of the requestParse the returned response content according to certain rules to obtain the desired informationSave the obtained in ...
Posted by dysonline on Sat, 19 Feb 2022 10:37:53 +0100
[GDOI2013] explanation of letter connection
Problem surface
There is a game in which a lattice of m rows and n columns is given on the plane. There are obstacles on some grids, and there may be English letters on grids without obstacles. Now it is required to establish a path on the empty grid, so that there is a letter at both ends of each path, and the letters at both ends are differe ...
Posted by paparanch on Sat, 19 Feb 2022 10:34:11 +0100
Introduction and creation of Huffman Tree
1. Basic introduction
Huffman tree, alias "Huffman tree", "Huffman tree", "optimal tree" and "optimal binary tree" Given n weights as n leaf nodes, a binary tree is constructed. If the weighted path length (wpl) of the tree reaches the minimum, such a binary tree is called the optimal binary tree, also ...
Posted by Lautarox on Sat, 19 Feb 2022 10:31:56 +0100
[Linux command] - 13 - how to set file special permissions
introduction
This article introduces three special permissions of Linux file system: suid, sgid and sticky.
Article catalogue
0 × 1. How to view the default permissions of files created by the current user0 × 2. How to add suid permission to a file0 × 3. How to add sgid permission to a folder0 × 4. How to add sticky p ...
Posted by mcsleazycrisps on Sat, 19 Feb 2022 10:29:07 +0100
Storage and sharing of Docker data
an introduction to
Generally speaking, there are two modes of Docker data persistence:
1, volume based on local file system
Docker automatic creationBind the mounted volume and create it yourself
2, plugin based volume
1 based on local file system
1.1 Docker automatic creation
1.1.1 create a MySQL image, and then run the container
s ...
Posted by TwistedLogix on Sat, 19 Feb 2022 10:21:17 +0100