Basic Knowledge of web Front-end Knowledge System-Minimum Number of JavaScript Rotating Array

1. Topic Description Moving the initial elements of an array to the end of the array is called the rotation of the array. Input a rotation of an array with a non-recursive emission reduction order, and output the smallest element of the rotation array. For example, the array {3,4,5,1,2} is a rotation ...

Posted by mystery_man on Sun, 06 Oct 2019 03:32:40 -0700

43. Concept and Significance of Inheritance

1, thinking Is there a direct association between classes? 2. Combinatorial Relations: The Relation between Whole and Part #include <iostream> #include <string> using namespace std; class Memory { public: Memory() { cout << "Memory()" << endl; } ~Memory() { cout <&lt ...

Posted by kr4mer on Sat, 05 Oct 2019 17:42:03 -0700

Reverse Nodes in k-Group (H)

Reverse Nodes in k-Group (H) Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain a ...

Posted by tomhilton on Sat, 05 Oct 2019 16:26:31 -0700

Niu Ke net HUAWEI machine test exercise 17 coordinate movement

Niu Ke net HUAWEI machine test exercise 17 coordinate movement Title Description Develop a coordinate calculating tool. A means to move left, D means to move right, W means to move up, S means to move down. Move from point (0,0), read some coordinates from the input string, and output the final inpu ...

Posted by smilesmita on Sat, 05 Oct 2019 16:19:58 -0700

A Simple Implementation of Quick Sorting

The basic idea of quick sorting is divide and conquer. By selecting the principal component, the array is divided into two segments. In turn, the smaller number of principal elements is placed on the left side of the principal element, and the number of principal elements is placed on the right side of ...

Posted by saeed42 on Sat, 05 Oct 2019 12:06:11 -0700

Day2 training for National Day

T1 Continuous Storm subject [Title Description] Given M colours of beads, the number of beads in each colour is unlimited. These beads are made into a necklace of length N. Ask how many non-repetitive necklaces you can make. The two necklaces are the same, if and only if the two necklaces can be overlapped by rotation or turnover, and the ...

Posted by keyurjbhatt on Sat, 05 Oct 2019 08:54:02 -0700

HDU6438 - Buy and Resell (2018ccpc Network Competition) Greed + Priority Queue

Every place can buy a thing or sell a thing or do nothing; ask the shortest time when the maximum profit and maximum profit are used. Ideas: greedy, with a priority queue structure to save what was prepared to buy (but not yet bought), and encountered a minimum value of a lot less than the heap, then dr ...

Posted by supratwinturbo on Sat, 05 Oct 2019 04:37:32 -0700

Day4 training for National Day

T1 A Theme of Numberism subject [Title Description] LYK has an undirected graph G={V,E}, which consists of n points and m edges. And this is a weighted graph with only a point weight. LYK wants to delete this graph, and its method is like this. Choose one point at a time and delete it, but delete it at a cost. Suppose that the points conne ...

Posted by jimrains on Fri, 04 Oct 2019 18:38:30 -0700

Garlic Counting - Maximum Common Number

I. content Two, train of thought The gcd value of each interval is maintained by the segment tree, and the gcd of a single point is itself. Because the title "Coconut Girl" can modify one of them (but the value of itself remains unchanged, when the calculation is considered to be modifie ...

Posted by blankextacy on Fri, 04 Oct 2019 17:19:35 -0700

Network Management

Network protocol OSI Seven-Layer Model and TCP/IP Four-Layer Model TCP Protocol and UDP Protocol TCP protocol: Transport control protocol. It is a connection-oriented protocol, which must establish a reliable connection with the other party before sending data. UDP protocol: User datagram protoco ...

Posted by kevin99 on Fri, 04 Oct 2019 12:05:10 -0700