Hill, sort, sortHill sort was a type of insert sort, also known as "shrink increment sort." It was a more efficient and improved version of the direct insert sort algorithm. It was an unstable sort algorithm. It was proposed by D.L.Shell in 1959.
The basic principle of Hill's sorting was to group the records according to a certain increment of the index, and use the direct insert sorting algorithm to sort each group. As the increment gradually decreased, each group contained more and more keywords. When the increment decreased to 1, the entire document was divided into one group, and the algorithm stopped. For example, the original sequence to be sorted was first divided into many small sequences (sub-sequences). Since there were fewer elements in each sub-sequence, it was more efficient to directly insert these sub-sequences. This process could be done many times, and each time was called a pass. Each pass divided the entire sequence obtained from the previous pass into different sub-sequences and directly inserted the sub-sequences again. Finally, when all the elements in the sequence were basically in order, the sequence would be completed by inserting the sequence one last time.
A man of right and wrong must be a man of right and wrongThe proverb," He who speaks of right and wrong is a person who speaks of right and wrong." This proverb showed that those who are willing to speak of right and wrong are people who speak of right and wrong. They often complain about the bad things of others in front of others. This behavior may stem from excessive jealousy. Such people often hope that others will be unlucky and embarrassed. For example, some people would stand up and complain when they saw others doing something wrong, and others would quarrel or complain to others when they didn't listen to their suggestions. There were also some people who looked glamorous on the surface, but would do anything to slander, slander, and frame others in order to achieve their goals. Smart people would not be honest with such people. In short, those who were right and wrong were often deeply involved in right and wrong themselves.
How to sort vegetablesThe specific steps of vegetable sorting included picking, alignment, tying, and basket. First, they placed the vegetables on the processing table and picked out the damaged, crushed, rotten, and deformed parts. Then, he used both hands to stamp the goods on the processing table to make them aligned. Next, he used green tape to tie a piece of cloth from the root. The tightness was just enough for his fingers to insert. Finally, after passing the inspection, they carried out the basket filling operation. Eight vegetables were placed on each layer, and each basket weighed about 10kg. The above was the basic process of sorting vegetables.
Quick sort leetcodeQuicksort was an efficient sorting algorithm. The principle was to divide the records to be sorted into two independent parts by sorting. The keywords of one part of the records were smaller than the keywords of the other part of the records. Then, the two parts of the records were sorted separately to achieve the order of the entire sequence.
In terms of code implementation, there are the following sorting steps: first select the data of the left node as the pivot (reference value), start from the right, traverse the node data to the left (under the premise that the right > left condition is met), if the node data> pivot, continue to move to the left; If the node data <= pivot, assign the data of the current node to the left node, then stop the right traverse and start the left traverse. Starting from the left, traverse the node data to the right (under the premise that the left > right condition is met). If the node data < pivot, continue to move to the right; if the node data>= pivot, assign the current node data to the right node, then stop the left traverse and start the right traverse. When left and right overlap, the traverse ends, and the pivot is assigned to the coincidence node. The left side of the pivot node is the left array, and the right side is the right array. After that, the above steps were performed on the left array and the right array to complete the quick sorting.
In addition, the principle of quick sorting was also applicable when dealing with some related problems in Leetcode (such as the k-th smallest number and k-th largest number in the Leetcode topk problem). However, in different scenarios, it may be necessary to make appropriate adjustments according to the requirements of the question and the characteristics of the data structure. For example, when sorting the linked list, it may not be suitable to use the classic quick sort because the single-directional nature of the linked list is not good to traverse from the back to the front. If additional forward connections are added, additional space is needed.
Leftover Girl Meets the Right ManThe following were some novels that involved leftover women meeting their Mr. Right: " Leftover Women Don't Worry About Getting Married ", in which the female protagonist was a 28-year-old leftover woman. As a strong woman in the eyes of social elites and colleagues, she was left behind. In the story, there might be a plot where she met her Mr. Right. In " Flash Marriage Emergency: The Familiar Wife Is Not Good and Is Addicted to Flirting ", the story between an older leftover woman, a male doctor, and the heir of a wealthy family with a hidden illness might develop into a Mr. Right plot. There was also " The Order of Late Spring," which was a fictional version of the Han Dynasty. It told the story of an unmarried woman returning to the Han Dynasty after the death of a married princess. In this process, she might meet a true love. In " The Little Koi Queen," although the old girl of the Yang family was born with a tender mind and was ridiculed by the people in the surrounding villages, her fate changed when a noble came to the capital. She might also meet her true love.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Is he the right man for the job in the comic?Well, to determine if he's the man for the job in the comic, you need to look at his qualifications, experience, and how he interacts with others. Sometimes, even if he seems capable on the surface, his hidden motives or past mistakes could make him not the ideal choice.
2 answers
2025-12-31 01:47
The man left and the woman right reversedIn the traditional China burial custom, the principle of men on the left and women on the right was generally followed. If there was a situation where men left and women right, it might violate traditional customs.
From the point of view of traditional tombs, different burial methods had different rules. For example, in the common burial method in the northern Yellow Plateau, one of the couples would enter the grave first after the death of one of them. When the other died, the tomb would be dug up again and the coffin would be placed on the left side of the man and the right side of the woman. A red cloth belt would be placed across the coffin, symbolizing the same as the knot that the couple held at the wedding. When the tomb was buried together, the coffin of the first deceased would be placed in the built tomb first. When the deceased died, the tomb door would be opened and a new coffin would be placed in. The same rule was followed: the man was left and the woman was right.
In some concepts, the arrangement of the burial was considered to be related to the concept of yin and yang, patriarch ethics, and so on. The male left and the female right may be regarded as inconsistent with the traditional yin and yang order, patriarch ethics order, etc. However, in modern society, with the pluralization of ideas and the revolutionary understanding of traditional customs, such a situation that violated the traditional layout might not be noticed by everyone. However, from the perspective of traditional funeral culture, it was not in line with conventional practices.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
The true story of finding the right manI recommend " Happy Marriage ". The author is looking for lost love. The female protagonist transmigrated into a concubine's daughter, observing her words and expressions, pretending to be a pig to eat a tiger, and was very good at it. The male lead was reborn, and the enemy was reborn. The setting was super novel. The female lead was a psychology doctor who knew hypnosis. This cheat was super cool. The male and female leads were honest with each other, unlike other novels that were secretive. The image of the supporting role was full and vivid, and it was not heartbreaking. The plot included fighting with the harem scum, palace fights, and the investigation of the truth. The story went from mutual defense to good feelings to love and companionship. It was written very naturally.
"The Story of Choosing a Husband" is also not bad, the author has a good move. The story of Princess Furong choosing her husband was funny and confused, and the plot was fresh and playful.
Peninsula: My Shiba Inu Girlfriend, written by that gentleman who loved drinking tea. Top idols want to fall in love, and fans have strange reactions. The male and female leads, Pei Shuyuan and Saka, were love stories.
"Selection," a turbid creation. The Prime Minister's daughter had a complicated background and faced many crises in a different world.
" The Love You Ordered Has Been Delivered ", a modern romance written by Yan Cheng. There were many roles, including unrequited love between a tall woman and a low man, as well as complicated emotional entanglements.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
How to sort story viewers?You could sort them based on their preferences for different story genres. For example, group those who like fantasy separately from those who prefer romance.
2 answers
2024-10-02 04:44