The way of meituan's commodity platform
From the beginning of 2015 to the end of 2018, we have made a commodity system in meituan reviews for four years. A little summary.
2019/1/3
Business fast running, platform jogging
1. Fast business
At the beginning of 2015, pan commodity system was started to explore ktv booking, and a set of ...
Posted by gabo on Thu, 06 Feb 2020 05:19:11 +0100
Learning design patterns by contrast -- from factory patterns to abstract factory patterns
Catalog
I. Preface
2, Factory mode
2.1 overview
2.2 code
2.3 summary
3, Abstract factory pattern
3.1 overview
3.2 code
3.3 summary
4, Comparison of two modes
4.1 draw "factory mode" and "abstract factory mode" in the same figure
4.2 further illustration of "factor ...
Posted by EviL_CodE on Wed, 05 Feb 2020 13:25:09 +0100
Pthon Learns 5_u Container Programming
To create an empty collection, use s=set()
d={}, default dictionary s=set() is an empty collection
The elements in a collection are out of order and cannot be obtained from a corner label
#Collection creation and traversal
s={'Lin Qingxia','High Circle','Zhang Manyu'}
for ele in s:
print(ele)
#Add t ...
Posted by Betty_S on Wed, 05 Feb 2020 04:24:50 +0100
C language -- Practice of subfunctions
Title: write several functions
(1) Enter the names and employee numbers of ten employees;
(2) Sort by employee number from small to large, and the order of names will be adjusted accordingly;
(3) It is required to input an employee number, use half search to find out the name of the employee, input the employee number to be sea ...
Posted by basim on Tue, 04 Feb 2020 16:48:19 +0100
Maximum heap build insert delete
priority queue
For a special queue, the order of getting out elements is based on the priority (key) of the elements, and the order of getting out elements into the queue
Action: find max (min), delete (max)
Array:
Linked list:
Ordered array:
Ordered list:
Use binary search tree? NO
Use complete binary ...
Posted by vexx on Tue, 04 Feb 2020 09:33:28 +0100
Chapter 1 of java - Basic Grammar
java learning resources
https://www.bilibili.com/video/av37413483
1. Process control statements
1. Sequential structure
From top to bottom, from left to right, brackets are counted first;
public class Test {
public static void main(String[] args) {
//Execute from top to bottom
int a = 10;
Sys ...
Posted by paulnaj on Tue, 04 Feb 2020 03:20:46 +0100
#Essential C + +, Chapter 3 generic programming style
Basic knowledge
array and vector are continuous storage space, which can be accessed by arithmetic operation of pointer. List is also a container. The difference is that the elements of list are linked by a set of pointers: the forward pointer points to the next element, and the backward pointer points to the previous element. Therefore, the ar ...
Posted by prinzcy on Mon, 03 Feb 2020 14:53:05 +0100
[leetcode journal] search for the median divide and conquer search of two ordered arrays
Today, I'd like to summarize this search related topic I wrote a few days ago:
My first thought:
Divide the two arrays (suppose A, B) into
A =>
A [0] ~ a [i] a [i] ~ a [n - I] and (0 < = I < n, n = = a.size())
B =>
B [0] ~ a [J] a [J] ~ a [n - J] and (0 < = J < m, M = = b.size())
...
Posted by djbuddhi on Sat, 01 Feb 2020 09:37:43 +0100
#Chapter 2 process oriented programming style
Basic knowledge
A function must be declared before it can be called (used). The declaration of the function allows the compiler to check whether the subsequent usage is correct - whether there are enough parameters, whether the parameter type is correct, and so on. A function declaration does not have to provide a function body, but it must in ...
Posted by fallen_angel21 on Fri, 31 Jan 2020 22:58:29 +0100
System log management of linux
1.rsyslog
This service is used to collect logs. It does not generate logs, but plays a collection role
vim /etc/rsyslog.conf ##View collection log information
/var/log/messages ##Service information log
/var/log/secure ##System login log
...
Posted by thyscorpion on Fri, 31 Jan 2020 18:01:57 +0100