Binary Search Algorithm

background

Today, Xiao Zheng, Xiao Ming and Xiao Hong are playing a guessing game, with Xiao Hong playing the banker. The rules of the game are that each contestant has three chances. If the contestant has not guessed the number after using up three chances, they will treat the dealer to a lollipop. If they guess correctly, the dealer will treat them to a candy bar. Eat a lollipop.

Now the game starts, please ask Xiaohong to write down a number on a sticky note. Xiao Hong wrote 97 on the post-it note in anticipation.

Xiao Ming: 50, right?

Xiaohong: No, it’s too small

Xiao Zheng: 75, is that okay?

Xiaohong: Haha, wrong, too small

Xiao Ming: 87, right?

Xiaohong: You are wrong again, it is too small

Xiao Zheng: 93, right?

Xiaohong: Almost, it’s too small

Xiao Ming: Is it 96?

Xiaohong: What a pity. You have no chance. Please eat a lollipop.

Xiao Zheng replied thoughtfully: 97

Xiaohong: Wow, you are great. Let’s go eat lollipops.

From the example above, we can extract a model. Given a set of ordered arrays, compare the target value with the value near the middle of the range each time. If it is too large, give the middle value to the left range and then find it from the middle value of the new range. If it is too small, give the middle value to The right range is searched from the middle value of the new range. If it is found, we return the index corresponding to its array subscript. If it is not found, we return -1. A search method like this is called "binary search".

Implement a binary search algorithm

There is a question about binary search. We will use this as an example to implement a binary search.

Question description

Given an n-element sorted (ascending) integer array nums and a target value, write a function to search nums and return the subscript if the target value exists, otherwise return -1.

Example 1:

Input: nums = [-1,0,3,5,9,12], = 9 Output: 4 Explanation: 9 appears in nums with subscript 4

Example 2:

Input: nums = [-1,0,3,5,9,12], = 2 Output: -1 Explanation: 2 does not exist in nums so -1 is returned

Example 3

Input: nums=[2, 5], =2

Output: 0,

Explanation: 2 appears in nums and has subscript 0

hint:

You can assume that all elements in nums are unique. n will be between [1, 10000]. Each element of nums will be between [-9999, 9999].

The tips here are very helpful for reviewing the question. The first sentence tells you to rest assured that these data are not repeated. You can rest assured to write in the simplest way. The second sentence tells you that only 10,000 numbers are enough to survive. , the amount of data is pretty good. The third sentence tells you that you don’t have to worry about the range of the integer type overflowing, and this is a signed integer type. So the tips are still helpful, although they may not be reflected in the code.

Ideas

Let’s first analyze what binary search does? It's nothing more than taking the middle one within a range and comparing the size with the target element. If it doesn't exactly equal the target element, I will continue to select one of the two segments and continue to chop it until the last element is left. So obviously we need a while loop to help us do such a thing. The second thing we have to think about is, what are the conditions for this while loop to be established? We can't create an endless cycle. When the left flag is less than or equal to the right flag, we continue to loop. It may be easy for everyone to understand here, so what is the situation? Let’s take an example from Example 3. When I want to find the number 5, left=mid=0, right=1 for the first time. At this time, we find that it is too small. Then if the equal sign is not taken, We just exited, so we added the equal sign here. When left=right=1 for the second time, we just found it. Then we think about the third thing, which half should I take? At this time, you need to determine the size of the middle one and the target one. If it is too big, I will subtract 1 from the middle one and assign it to right. If it is too small, then I will add 1 to the middle one and assign it to left. , and then recalculate the middle one and compare again. Okay, let's code one code together.

Code

/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number}
 */
var search = function(nums, target) {
  var left = 0;
  var right = nums.length - 1;
  var mid = left + Math.floor((right - left) / 2);
  while(left  nums[mid]) {
      left = mid + 1;
    } else if (target < nums[mid]) {
      right = mid - 1;
    } else if (target === nums[mid]) {
      return mid;
    }
    mid = left + Math.floor((right - left) / 2);
  }
  return -1;
};

Question: What is the time complexity of binary search?

Let’s talk about the answer first, O(logn). The rough process is, n(1/2)^k = 1. If we work backwards, k = log2n, the time complexity reflected on the computer is logn.

What scenarios are binary search applicable to?

The interview is for brushing people off (because it is easy to make mistakes), the amount of data is medium, and the data does not overflow the range. The most important thing is to perform a binary search on a set of sorted numbers.

Take our first example above. The ordinary search takes 97 times, but the binary search idea is used 6 times. Isn't this very delicious?

references

704.Binary search():

6 Cleaning Essays Of 200 Words

Summary: Hua Xiaoli was after school, and her mother took her home with an umbrella and a raincoat. The sky was covered with dark clouds and it was raining heavily. Finally got home… If you think the writing is good, please remember to forward it and share it!

This article "6 Cleaning Essays of 200 Words" is recommended by the editor of Essay Encyclopedia () for your study and reference!

Chapter 1: Cleaning (Grade 2/200 words)

Hua Xiaoli was after school, and her mother took her home with an umbrella and a raincoat. The sky was covered with dark clouds and it was raining heavily. After finally arriving home, my mother's clothes were soaked, but Hua Xiaoli's clothes were clean. Seeing that the house was dirty and messy, she sighed: "I'm tired from going to work. Now my clothes are wet, and I have to do housework again. Forget it, let's clean up the house first!" After that, her mother picked up the rag and started to wipe the table. . Hua Xiaoli saw it and thought: Mom is hardworking and industrious, I have to do something! She picked up the broom and swept the floor until it was spotless. (Complete collection of compositions)

A smile appeared on her mother's face, and Hua Xiaoli also smiled, as bright as a flower.

Chapter 2: Classroom Cleaning (Grade 2/200 words)

After school in the evening, the students clean up and clean the classroom. Xiao Ming took a plate filled with water, I was cleaning the windows with a rag, Xiao Hong was mopping the floor with a mop, and Xiao Fen was wiping the table with a rag.

Xiao Ming said: Brother, we are almost out of water. Please fill up with some water. The elder brother shouted: OK. After filling the water, my brother cleaned the windows again.

Xiaohong smiled and said: They are both happy and joyful. Xiaofen also said: Yes, they two are so happy.

They finish school at 6:30 every day because they are used to cleaning the classroom every night.

We now have a clean and tidy classroom. Seeing the success of everyone's work makes my heart feel sweet.

Chapter 3: Cleaning (written by person/200 words)

The weather is so nice today. The birds came out and chirped. Xiao Ming and Chen Xiaohong made an appointment to go out to play. When I passed by my grandma's house next door, I saw her sweeping the yard.

"Let's go to grandma's house next door." Xiao Ming said. "Why?" Chen Xiaohong asked. Xiao Ming replied: "Because grandma is old and can't clean herself."

Dong-dong-dong, "Who is it?" Grandma asked. Grandma Kai saw them and asked, "What's the matter with you?" "We're here to help you clean." Chen Xiaohong took a bucket to sprinkle water, and Xiao Ming picked up a broom to sweep the floor. A happy smile appeared on grandma's face. When they finished, grandma gave them a thumbs up and praised them.

The little bird chirped, as if it was also praising them!

Chapter 4: Cleaning at home on New Year’s Eve (Grade 1/200 words)

This morning, as soon as I got up, my father said: "Today is New Year's Eve. We must clear away all the dust from last year. This is a Chinese custom." I said: "I must join in!"

Dad took out all the books. I put my books together, I put my toys together. Then, I classified different books and put them on the bookcase; I classified different toys and put them in drawers. After cleaning, I looked at my room. It was spotless and organized.

After this New Year's Eve cleaning, I know that I must put away the book I just finished reading at all times in the future, so that I can keep the steam in the room clean.

Chapter 5: Helping Mom Clean (Grade 2/200 words)

On Saturday afternoon, I finished my homework. At this time, I saw my mother laboriously wiping the table in the living room. Her forehead was already covered with sweat beads, and she still couldn't rest. I thought to myself: Mom has to go to work in the morning and clean the next day. It’s really hard! How about I go and help?

So I came to the living room, picked up the broom and started sweeping the floor. "Sand, sand, sand…sand, sand, sand…" The only sound left in the living room was the sound of me sweeping the floor. Half an hour later, the house became so clean and spotless that it seemed like people could be reflected in it.

Finally finished, my mother and I were exhausted. My mother gave me a thumbs up and said, "You are really a good child who is sensible, capable and filial to your parents."

Chapter 6: Cleaning (Grade 2/200 words)

In today's labor class, our class organized a discussion about cleaning. Several classmates and I went to the office to clean the tables. We didn't know it until we looked at it. We were shocked when we saw it. It was so dirty. There were so many things to clean. There were water dispensers and tables. Chairs… Originally I wiped five tables and another classmate wiped four, but I wiped all nine tables. It turned out that the classmate was worried about a piece of tape on a table that could not be wiped off. I told her to wipe it hard with water. Finally, we worked hard together and finally wiped off the tape.

I was tired but happy when I got home. This cleaning made me realize the hard work of adults. From now on, I will be a child who loves to work and help my parents share the burden.

Finally: The above is the entire content of "Six Cleaning Essays of 200 Words" recommended by the editor of Essay Encyclopedia (). Thank you for your reading and support!

Recommended classic content: I have grown up, a 200-word selected essay | 200-word excellent essay on autumn in my eyes | 200-word selected essay on spring in my eyes | a 200-word essay about my pencil case | a topic about my after-school life An essay of 200 words with recommended content for your reference!

A 700-word Essay On Being Spanked

The spanking game is a favorite game in our class. Every day after school, we would gather on the playground, eager to start this game full of laughter.

That day, the sun was shining brightly, and we came to the playground happily. A classmate took out a piece of soft plastic to shoot, and we lined up in a row, ready to start the game. The rules of the game are simple, everyone takes turns being the one being beaten, and everyone else is the one being beaten. The person being spanked should try to avoid the slap of the spanker. If he is hit, he will be punished by receiving a gentle slap on the buttocks.

The first one selected was Xiao Ming, a lively and cheerful boy. He stood in the middle, and the students around him formed a circle and started spanking in a clockwise direction. Xiao Ming dodged flexibly, sometimes jumping up and sometimes bending down, leaving the batters in a hurry. Everyone's laughter and cheers continued, and the scene was very lively.

It was my turn next. I stood in a corner of the playground, ready to meet the challenge. The batters came towards me with sly looks on their faces, and I held my breath nervously, keeping alert. They were swaying from side to side, trying to find a weakness in me. I suddenly felt a chill, and a slap suddenly landed on my butt, making a crisp sound. I was beaten! Everyone laughed, and I couldn't help but join in. The laughter echoed throughout the playground.

The game went on for several rounds, and everyone took turns experiencing the feeling of being beaten. Even though it was just a gentle slap on the butt, everyone had a look of pleasure on their face. This kind of game not only allows us to relax, but also enhances friendship and trust between us.

Although spanking play may seem simple, there is a lot of fun and friendship involved. In this game, we can release stress to our heart's content, while also cultivating teamwork and reaction skills. It is not only an entertainment activity, but also a tacit understanding and spiritual sustenance in our class.

Every time I think about this game, I can't help but laugh out loud. The spanking game filled our class with joy and laughter and became a wonderful memory for us. Whether on the playground or in the classroom, we will continue to have this joy and spend quality time together.

Spanking essay [9 essays on being spanked for the first time]

[Essay on the whole class being spanked] Essay on spanking in 400 words | Essay on spanking

Individuals were beaten and reported

Essay about a girl being spanked

Essay on being spanked in exam, essay on spanking

A Collection Of 300-word Essays On Home Cleaning

Cleaning composition

300

Character

Cleaning composition

300

Character

In our daily study, work and life, everyone is familiar with composition, right? The root of composition is

A 100-word composition on grade cleaning_A 100-word composition on grade cleaning_Elementary school composition on cleaning

According to different genres, it can be divided into narrative, expository, practical and argumentative essays.how to write

How can literature avoid being deceived?The following is a collection of cleaning compositions compiled by the editor.

300

word hope

Can help everyone.

Cleaning composition

An elementary school composition on cleaning_A 100-word composition on grade cleaning_Second grade composition on cleaning

300

Character

The Chinese New Year is about to come, and Xiao Ming’s family held their annual general cleaning.

My mother was cleaning the glass. It took her a lot of effort to clean the glass spotlessly.

Mom was so tired that she was panting and sweating profusely.

Dad was mopping the floor. He bent over and hunched his back, mopping hard, using the longest time

An elementary school composition on cleaning_A 100-word composition on grade cleaning_Second grade composition on cleaning

It took so much effort to mop the floor until it was shiny. He was also so tired that he could hardly breathe.

Mom saw the mess on the table and said, "Xiao Ming, please clean up the table."

Bar. Xiao Ming said: "Okay." "After that, Xiao Ming quickly packed away the things on the table.

Okay, he said to his mother: "I've packed it up, Mom." His father said: "Xiao Ming, you go

Water the money tree!" Xiao Ming said, "No problem!" Xiao Ming quickly picked up the kettle and watered the money tree.

water. After watering, he saw that his parents were too busy to wipe away the sweat, and thought to himself,

Grade cleaning composition 100 words_Elementary school composition cleaning_Grade cleaning composition second grade

Mom and dad are so tired, what should I do?

He took out two glasses of water from the kitchen and handed them to his parents.

Mom and dad said in unison: "Thank you, Xiao Ming!"

Xiao Ming narrowed his eyes with joy and said, "You're welcome!"

The family spent the day happily.

Cleaning composition

300

Character

It’s Chinese New Year! Ha ha!Speaking of the New Year, everyone will definitely think of the sound of New Year’s firecrackers.

bells and New Year's greetings.However, the most important thing on New Year’s Eve is general cleaning.

Cleaning up means saying goodbye to the old and welcoming the new in the new year, so let’s take action

"Ding bell bell…" The alarm clock rang. I opened my sleepy eyes and jumped up. Today I want to

Cleaning my room in preparation for the New Year.After looking around the room, I decided to start at the desk

tidy.Due to my neglect of tidying up, it would be inappropriate to describe my desk as "dirty and messy".

Civil Code Short Story [055] Two People Have Lived Together For 15 Years. Is It Cohabitation Or De Facto Marriage?

Civil Code Short Story [055] Two people have lived together for 15 years. Is it cohabitation or de facto marriage?

Determination of de facto marriage and cohabitation

Before the Ministry of Civil Affairs' "Marriage Registration Management Regulations" were promulgated and implemented on February 1, 1994, if a man and a woman lived together and met the substantive requirements for marriage, they would be treated as a de facto marriage.

Starting from February 1, 1994, if a man and a woman without a spouse live together as husband and wife without registering their marriage, their marriage relationship is invalid and they are not protected by law. If the case is brought to the people's court, it should be treated as a cohabitation relationship.

After the promulgation and implementation of the "Marriage Registration Management Regulations" of the Ministry of Civil Affairs on February 1, 1994, if a man and a woman live together, if they do not meet the substantive requirements for marriage, they are in a cohabitation relationship; if they meet the substantive requirements for marriage, they must apply for a new marriage registration, otherwise If the application is reissued, it is considered a cohabitation relationship.

Marriage here refers to a marriage certificate. It is just a marriage ceremony, not a marriage.

The difference between de facto marriage and cohabitation

Whether there is a de facto marriage or not, there are many differences in terms of property disposal, inheritance, marriage, etc. Specifically, there are several aspects such as bigamy, property, inheritance, support, and right to claim compensation.

bigamy. If it is a de facto marriage, then if one party cohabits or marries a third party in the name of husband and wife, it constitutes bigamy. If the circumstances are serious, it may constitute the crime of bigamy. If they are cohabiting, one party can register their marriage with a third party at any time and live together with the third party in the name of husband and wife.

For example, if Xiao Ming and Xiao Hong are in a de facto marriage, even if they do not have a marriage certificate, then if Xiao Ming or Xiao Hong cohabits with someone else as husband and wife, or if they have a marriage certificate with someone else, it will constitute bigamy; If someone else obtains a marriage certificate or lives together as husband and wife, it does not constitute bigamy.

Property: If there is a de facto marriage, both parties will receive joint property as husband and wife, and external liabilities shall be determined according to the liabilities during the duration of the marriage relationship; if they live together, the relationship between husband and wife does not apply, and shall be determined according to the income and expenditure during the cohabitation period.

For example, if Xiao Ming and Xiao Hong have a monthly income of 20,000 yuan each, and the other has a monthly income of 2,000 yuan, if they are married in a de facto relationship, their joint income will be 22,000 yuan. If it is a de facto marriage, Xiao Ming pays 4 million and Xiao Hong pays 1 million to buy a house, which belongs to both parties; if it is a cohabitation, then Xiao Ming has 80% share and Xiao Hong has 20% share.

Inheritance: If there is a de facto marriage, both parties have legal inheritance rights and are each other's first-order heirs; if they live together, there is no legal right to inherit.

If Xiao Ming dies in a car accident, he will leave an inheritance of 2 million. Assume that Xiao Ming has parents and they have a child. If they are in a de facto marriage, Xiao Hong owns one million, and then shares the remaining one million equally with Xiao Ming’s parents and children, that is, Xiao Hong can get 1.25 million. The compensation is 1 million (not inheritance), which will be distributed among Xiao Hong, her children, and Xiao Ming’s parents. If it were a de facto marriage, Xiaohong would have nothing.

Support: If you are in a de facto marriage, you have mutual support obligations, but if you live together, you have no obligation to support each other. If Xiaohong is seriously ill, and if they are in a de facto marriage, Xiaoming should see a doctor for Xiaohong and take care of her. Failure to take care of Xiaohong may lead to Xiaohong's death, which may constitute the crime of abandonment; if they are cohabiting, they do not have these obligations.

Right to claim compensation: If two people are in a de facto marriage and divorce, one party has the right to claim compensation for divorce damages; cohabitation does not.

Interpretation of the Marriage and Family Section of the Civil Code (1)

Article 7 If a man and woman who have not registered their marriage in accordance with the provisions of Article 1049 of the Civil Code but live together as husband and wife file a lawsuit for divorce, they shall be treated differently:

(1) Before the promulgation and implementation of the "Marriage Registration Management Regulations" of the Ministry of Civil Affairs on February 1, 1994, if both men and women have met the substantive requirements for marriage, they will be treated as a de facto marriage.

(2) After the Ministry of Civil Affairs' "Marriage Registration Management Regulations" were promulgated and implemented on February 1, 1994, if both men and women meet the substantive requirements for marriage, the People's Court shall notify them to apply for re-registration of marriage. If the marriage registration is not re-registered, it shall be handled in accordance with the provisions of Article 3 of this Interpretation.

Question: Xiao Ming and Xiao Hong have not obtained a certificate. After their wedding, they have lived together for 15 years and have two children. Are they cohabiting or in a de facto marriage?

Simple Drawing Of Old Lady In Wheelchair

Grandma sitting in second grade in wheelchair looking at pictures and writing words

One day after school, Xiao Ming, Xiao Jun and Xiao Li went home together. There is a big slope in front, and a gray-haired old woman is rocking a wheelchair with a bag of vegetables on her legs, struggling up the slope.

Xiao Ming said: "Let's go help her!" So the three good friends hurried to the wheelchair and pushed it hard. I saw their arms slightly bent, their bodies bent, their front legs bent, and their back legs kicking. Xiaoli's face turned red. After a lot of hard work, the wheelchair was finally pushed to the top. The old lady said happily: "You are all good children who like to help others!" The three good friends replied in unison: "This is what we should do."

On the way home from school, Xiao Ming saw an old man sitting opposite him in a wheelchair who was about to go up the slope. The old man was turning the two wheels of the wheelchair with both hands, but no matter how hard the old man tried, the wheelchair could only go up one step. Little by little, at this time Xiao Ming hurriedly ran over and said to his grandfather: "Grandpa, let me help you." After that, Xiao Ming pushed the wheelchair up the slope. After all, grandpa is an adult and Xiao Ming is still a child. Xiao Ming used all his strength Pushing back up the slope, Xiao Ming finally pushed the old man up the slope. At this time, Xiao Ming was sweating all over, and the sweat on his face was flowing down. The old man said to Xiao Ming: "Thank you, son. If it weren't for you, I don't know if I would have been able to climb up this steep slope. You are such a little Lei Feng." Xiao Ming said to the old man: "You're welcome. This is what I should do."

How to draw an old woman sitting in a wheelchair

with hands

A funny guy

Look at pictures and write words to help donate love to an old lady in a wheelchair

At noon, Xiao Ming, Xiao Hong and Xiao Gang were playing in the park. An old woman came to the park pushing a wheelchair. She was exhausted. Xiao Ming and the others saw it and ran over and said, "Let us help you!" The old lady said, "You are so good, and you are willing to help others." Xiao Ming said, "Nothing, just learn from Uncle Lei Feng." The old lady smiled and asked: "Thank you, what are your names?" Xiao Ming said, "You're welcome, our name is Red Scarf, we specialize in doing good deeds." They sent the old lady home energetically. Along the way, they chatted with the old lady for a while and listened to music for her!

Composition Of A Primary School Student Who Quarreled With His Classmates

Composition of a primary school student who quarreled with his classmates

When you quarrel with your classmates, please remember that there is love between you, and whoever is wrong should apologize; when you hate someone, please remember that this world is beautiful, forget everything, and start again. came. Today, the editor will share a composition about a primary school student who had a quarrel with his classmates. Please appreciate it and learn from it.

Composition of a primary school student who quarreled with his classmates (1)

When I was in second grade, I had a quarrel with my deskmate Jiao Yunfei.

Here's what happened: During art class in the afternoon, we were both painting seriously. Suddenly, when Jiao Yunfei touched my arm, the colored pen drew outside. The drawing was dirty and unsightly. I said to him angrily: "You pay for my book! You pay for my painting!" He just smiled and said: "I didn't mean it!" After hearing this, I thought I would take revenge on you if I had the opportunity. So I pretended to take the colored pencils and touched his elbow. He said angrily: "You did this on purpose!" After that, he left…

When I got home, I told my dad about the art class incident. Unexpectedly, my dad's face sank and he said to me seriously: "Since he touched you and soiled the painting, he will not paint it again." Or draw another thing or animal on the dirty place? Why do you want to retaliate against others? It’s such a small thing, but to this extent?" After hearing this, I quickly said: "I will never quarrel with my classmates again. !”

The next day I found Jiao Yunfei and said to him gently: "Let's make peace! What happened yesterday was my fault, I'm sorry." Jiao Yunfei said: "No, no, it's my fault, and I shouldn't be angry with you." .

This incident passed for a long time, until I entered the third grade, it was still deeply remembered in my mind. Although it was just a small thing, it was like a warning to remind me at any time to unite and be friendly with my classmates and help each other.

Composition of a primary school student who quarreled with his classmates (2)

My classmate Wang Mengxue and I are inseparable good friends. We finish school together every day, go home together, and often play games and draw together. We are very close! After school this morning, something unpleasant happened to Wang Mengxue and I.

We two got into an argument over a trivial matter. The two said to each other, and after a while, she came over to catch me in a hurry. We both had a fight, and I decided to ignore Wang Mengxue again. When I got home, I asked my mother about it. My mother looked at me and said seriously: "Liu Rujuan, do you think Wang Mengxue did something wrong? Is there anything wrong with you?" I said, "What did I do wrong?" My mother smiled and said, "What do you think? I thought about it, if you had not argued with Wang Mengxue before talking about you, but had reasoned with him, wouldn't there have been a fight?" I thought about it and then said, "Wang Mengxue hit me first. Yeah!" Mom said: "If all of your good friends are like her today and you ignore them, you won't have any friends anymore, and you will feel very lonely." Mom continued: "Every time Everyone has their own strengths and weaknesses. Don't take other people's shortcomings to heart. Even if someone does something wrong, don't worry about it. Be magnanimous and forgive them. Only then will you have more friends. Although Wang Mengxue is at fault, you should not arrest her. I hope you will apologize to Wang Mengxue this afternoon so that she will not be angry again, okay?" I lowered my head and said in a small voice, "Okay. !Mom, I’m going to apologize to Wang Mengxue this afternoon.”

When I came to school in the afternoon, I was still thinking about whether Wang Mengxue would pay attention to me. When I saw Wang Mengxue, I took the initiative to apologize to him. Wang Mengxue talked to me happily. We reconciled again and became very good friends again.

Composition of a primary school student who quarreled with his classmates (3)

Xiao Ming and I were good friends and had the same pen. However, on Friday afternoon, my pen disappeared, and I also saw my pen in Xiao Ming's pencil case. Although my pen looks exactly the same as his, I know that pen is mine because Xiao Ming's pen was not in his pen box that morning. So I asked him to return the pen to me, but he said that the pen was his. Just like that, we started to quarrel. Because he had a tutoring class that afternoon, he left before we finished arguing.

On Saturday, we have to attend cram school together. In the past, we have always sat together, but today, he did not sit with me. We were originally going to the library that day, but after finishing the tutoring class, he came over and said, "Today, I won't go to the library with you." Before I could say anything, he left. On Sunday, we were supposed to go to the movies together, but he called my house and told me that he wouldn't go to the movies.

On the following Mondays, Tuesdays and Wednesdays, he kept sitting sideways to the right. If he had questions, he wouldn't ask me, but would ask other people. I didn't talk to him either. During those days of recess and lunch, we did not eat or play together.

On Thursday morning, Xiao Ming was waiting for me at the school gate. He said: "I'm sorry, I misunderstood you a few days ago. I found my pen. That day, your pen rolled to the ground. I thought it was mine, so Just pick it up and put it in the pencil case. Can you forgive me?" Of course I forgave him. From then on, we became good friends again.

Composition of a primary school student who quarreled with his classmates (4)

"You are just a health committee member. What's so great about you? You only talk nonsense and point out things. Why don't you do it yourself?" "I have the responsibility to supervise inspections. Today is your duty, why should I do it?" "Don't do it!" I took some chicken feathers and used them as ceremonial arrows, and if I could, I could show them to everyone…"

I sat in my seat, thinking about the quarrel with the boy just now, and felt sulky in my heart. I am a health committee member, and the teacher asked me to supervise and record the performance of my duties every day. My classmates only have one turn to be on duty once a week, but I check them every day, which is already "hard" enough. But the boy disobeyed my orders and even quarreled with me. How could I continue to be a health committee member? Alas! This is such a thankless job.

A few minutes ago, I really wanted to complain to the class teacher, but when I remembered the sentence "make a show for everyone to see", I hesitated. Although his words were harsh, they were not unreasonable. I have been a health committee member for two years, but how many of them are truly convinced? Although they obey me on the surface, they scold me behind the scenes for putting on airs and singing a high tone. Why is this? Didn't I do my duty? Am I not the last one to leave school every day in the class… I tried hard to think about where I went wrong, but after thinking about it, I couldn't find it. Suddenly, I remembered what the teacher said to me at the beginning of the school year: Class leaders are servants who serve classmates. If you want to be a good cadre, you must set an example, work hard and take the lead in everything. At the time, I wasn't very clear on the true meaning of these words. But after such an argument and reflection, I understood that it turned out that the teacher wanted me to practice what I said and what I said.

So, I no longer felt sulky, no longer wanted to complain or hesitate, I quickly picked up the bag and ran to the public place where my class was assigned to work, and a hot and sweet feeling came from the bottom of my heart.

[Composition of a primary school student who quarreled with his classmates] Related articles:

1. Composition about classmates quarreling

2. English composition about quarreling with classmates

3. Composition on quarreling with friends

4.Composition about quarreling with friends

5. Composition about a quarrel with a friend

6. A 200-word student composition about regretting quarreling with dad

7. Three essays by primary school students about quarrels

8. Essay about a primary school student whose parents quarreled 400

[Turtle Soup] A Logical Summary Of Turtle Soup!

Yoyo it's me! Last time I sorted out some outrageous Turtle Soup complaints. This time it’s a more logical Turtle Soup (referring to a soup that won’t be as clueless as a headless fly). If you feel like this, it’s not very logical or good, just take it easy. Squirt~

1. Sisters are indistinguishable

Noodle soup: On a rainy day, a man went out with a big suitcase. He met his wife at the door. After exchanging a few words with her excitedly, his expression suddenly became extremely strange. He looked carefully at his wife's profile, looked at his watch, and then turned to look at the heavy rain outside the door. Then he hurriedly pulled the suitcase and left, disappearing from sight.

Soup base: A woman has an identical twin sister. A woman's husband secretly cheated on her twin sister.

When a twin sister has an affair with a woman's husband, in order to distinguish herself from the woman, she will draw a conspicuous mole on the side of her face.

Recently, a woman's husband has become completely tired of women and has been looking for opportunities to kill her.

One rainy day, the woman went out to work as usual. Taking this opportunity, my husband invited his sister to his home for an affair.

The husband found that the woman sitting on the sofa had no moles on her face. He was very panicked, thinking that his wife had suddenly come home. Worried that his affair would be exposed, he planned to kill his wife today. So he quietly walked over and killed the woman, dismembered her body, packed the body in a suitcase, and went out to dump the body.

After going out, he met a woman outside the door. At first he thought it was his sister, his lover, so he said a few words excitedly. After speaking, he realized something was wrong. If you look closely, you will see that this woman has no moles on her face. He looked at his watch and found that it was the time his wife usually came home from get off work. It's been raining heavily today. He suddenly understood that the woman at home just now was his sister. But because it was a rainy day, the mole on her face was washed away by the rain. He killed the wrong person. Shocked and frightened, he ran away.

{Except for the twins, we guessed everything else smoothly}

2. (I can’t think of a name for it)

Noodle Soup: They seemed to be a match, and he was very happy, but… green turned red into white… The fallen jewelry, the proof of threat, and the blurred flesh and blood became his obsession.

Tang Di: My senior has a girlfriend. They seem to be a perfect match, and the senior is also very happy. It was not until later that the senior bought a ring and prepared to propose. (Red incident) However, on that day, the senior was beaten by a man and the ring fell to the ground. Only then did he find out that she was a married woman. Her husband was very cruel and would domestically abuse her. The senior did not know that she had a husband. Her colleagues and parents are very supportive of both of them. They all knew that she was working hard, that her husband was a bastard, and they didn't help. My senior showed up, and it was like they found a life-saving straw for her, without telling the senior. Because the woman was pregnant, her husband was a long-distance bus driver, and the time didn't match, so he knew immediately that he was being cuckolded (green). The man later used this matter to blackmail the senior, and even used the woman's post-abortion meatball as proof. After that, the senior wanted to give up. He kept looking for him at work, at home, and finally the senior was hiding during a certain incident. He was killed and turned into a ghost (white matter).

{When you see 'red', 'white' and 'green', it's hard to guess? Even if my husband is a long-distance driver, I might not have guessed it. I think it would be OK if he was on a long-term business trip}

3. Water plants

Noodle soup: A boy went for a walk by the river and chatted with a fisherman. The fisherman said something to him, and the boy committed suicide.

Soup base: Strict version: When a couple was playing by the river, the girl accidentally fell into the water, and the boy jumped into the sea to save her. Because the current was very fast, the boy only caught a handful of water plants, and he failed to rescue the girl in the end. . A few years later, he came to the river again and saw a fisherman. While chatting, the fisherman told him that there had never been any aquatic plants in the river. The boy knew that what he was grabbing was actually the girl's hair, and then committed suicide.

Horror version: The couple fell into the water, but neither of them knew how to swim. The male protagonist survived by clinging to the water plants in the river (that is, the female protagonist’s hair). (The heroine may have suffocated and her body got stuck in the river)

{This can be considered a classic turtle soup, and I don’t see what’s so scary about the horror version}

4. Loyal dogs

Noodle soup: Xiaoqiang raised a loyal dog. One day he took the dog to the street, and Xiaoqiang died.

Soup base: Xiaoqiang had a heart disease and suddenly fell to the ground while walking on the street. The loyal dog kept strangers from getting close to Xiaoqiang, and finally Xiaoqiang died without help. (Adapted from real events)

{It can be adapted into the story that the wife took away the medicine that Xiaoqiang brought with him in order to murder Xiaoqiang. Otherwise, it would be difficult to explain why he did not take medicine with him when he had a heart attack. The reason for the murder was probably for insurance}

5. “No need to save him”

Noodle Soup: When we drove the ambulance to the house with food poisoning, all the people couldn't even stand up, and there was no color on their faces. Just when we were about to put the most dangerous old man into the ambulance first, everyone shouted in unison: "No need to save him!"

Soup base: The old man has died of illness. The family gathered together to prepare for his funeral. Unfortunately, they all got food poisoning.

{Maybe the doctors and nurses want to rush to the emergency room for defibrillation, and don’t blame the doctors and nurses for not being able to distinguish between the living dead}

6. Chocolate

Noodle soup: Xiao Ming's brother raised a hamster. One day, Xiao Ming's brother's hamster died. Xiao Ming's brother was very sad. His mother rewarded her with a piece of chocolate the size of a hamster. Not long after, Xiao Ming died. Why?

Soup base: The younger brother wanted bigger chocolate so he killed Xiao Ming

{The most logical MVP, I guessed it in seconds}

7. The fifth person

Noodle Soup: Five men were walking together on a country road. Suddenly it started to rain, and four of the five people accelerated their pace, but the fifth person was not in a hurry at all. Finally, five people arrived at their destination at the same time. The four people who quickened their pace were soaked in the rain, but the fifth person was not wet at all.

Soup base: four men carrying the coffin. The fifth person is the dead man lying in the coffin.

{I also guessed this in seconds}

Actually, it’s to make up for 7 people (whisper bb