in a plan, there are many points and some points will be connected. Please group these points. The grouping rule is: 1) there is no connection between groups 2) there must be connections between points within groups how to implement such a groupin...
topic description this problem occurs when individuals use BFS. I am puzzled. Please advise about the results . The code is as follows: -sharpinclude<iostream> -sharpinclude<stdlib.h> -sharpinclude<stdio.h> -sharpinclude<v...
question: there are three arrays A1 = [ "i1 ", "i2 ", "i3 ", "i4 ".... "ix "]; x is an integer greater than 2 a2 = [ "K1 ", "K2 ", "K3 ", "K4 ".... "ky "]; y is an integer greater than 2 a3 = [M1 ", " m2 ", " m3 ", " M4 ".... " mz "]; ...
topic description as shown in the question, if you know the GPS coordinates of five points, how to find the sixth point and minimize the sum of the distances from the other five points, and find out his GPS coordinates would like to ask if you have ...
as shown in the picture, the parking fee is charged per second every day, regardless of holidays. Note: the billing period is 24 hours, and the end of the day at 21 o clock must be next to the night start time at 21:00 the variables are daytim...
environment: codeblock compilation environment: mingw32-gcc.exe-pedantic-Wextra-Wall-std=c99-c path Code: -sharpinclude <stdio.h> int main(){ FILE *fin, *fout; fin = fopen("data.in","rb"); fout = fopen("dat...
topic description ask an algorithm question: 100000 people are arranged to see three movies in 10 cinemas, each of which can only see one movie a day, and the cinema is scheduled to be shown for five days. ...
rule (the result of formula calculation is the ranking of topic heat): : I would like to ask how such a requirement can reduce the consumption of server performance, can you tell me about the solution? ...
for example, change a number into an average array , such as the number 8, and divide it into four times. When it cannot be evenly divided, the value of the first item of the array can be larger than that of the second term, and so on, for example, if it...
topic description similar to the problem of N SUM, the idea comes from a small task encountered in the work, abstracted out: has m items, and gives the unit price of each item, P1 br P2, P3 br. Now there are n orders, and the total amount of each ord...
topic description it is known that there is a graph consisting of several connected components, and now it is required to mark the edges of all rings in the graph. The example diagram is as follows: (that is, marked with red edges) kruskalDFS I...
topic description it is known that there is a graph consisting of several connected components, and now it is required to mark the edges of all rings in the graph. The example diagram is as follows: (that is, marked with red edges) kruskalDFS I...
such as the title: it is necessary to traverse all the branch paths of the tree structure from a two-dimensional array with a parent-child structure to form a new array. It is best to use php language to find an algorithm the original array is . $array...
there are now such data objects arr = [ {] start: 1, end: 12 }, { start: 2, end: 5 }, { start: 6, end: 10 }, . ] how to determine whether the start and end of each object are continuous for example, the above situation is incorrect, because 1-12 c...
there are checked, under several different div to get the selected values and put them in different arrays <div class="content"> <div class="selectContent1"> <input type="checkbox" value="...
there are checked, under several different div to get the selected values and put them in different arrays <div class="content"> <div class="selectContent1"> <input type="checkbox" value="...
background: the existing N items need to be packed into different express parcels. when the total tax in each package is less than 50 yuan, the goods in each package will be exempt from tax . It is required to ensure that the number of parcels is as sm...
when you look at the data structure recently, there is a question: why should each element of the array have the same data type? ...
what is the time complexity of the algorithm in the following code? it s best to explain the idea . i= s = 0; while (s<n) { iPP; s+=i; } ...
recently encountered a requirement that the data structure is a tree structure. is when I click on a child node and need to get an attribute value for all nodes of the corresponding branch. The data structure is shown in the following figure. for...