A tutor wants to teach the concept of Even and Odd. He asks the students to pair up in groups of two. The condition here is that a group can be formed if the initial of their names is the same. Find if all the students
can be paired and no students are left behind. Given string, the task is to find if all the characters occur even number of times.
The characters in the string are in random order. Display message 'Pairing is possible' or 'Pairing is not possible' depending on the output.
Answers
Answer:
I think the best way to involve the students in the learning process is to practice the following 4 things:
1. Prepare your session thoroughly; if some day I am not confident on the subject I am teaching, I can read that on the students' faces.
2. Learn to improve your delivery; punctuate wherever needed, and look into the eyeball of the students.
3. Use PPTs to help them cohere, understand the whole plot and the chronology of issues being taught.
4. Use some appropriate video/s, and discuss the video contents adequately to help the students conceptualize the issues on hand.
This method has helped me immensely in getting a positive response from my MBA students
Answer:
input:
ppqrssqr
pairing is possible
Explanation:
From the input given above
str=ppqrssqr
Group 1:{p,p}
Group 2:{q, q}
Group 3:{r, r}
Group 4:{s, s}
All the students are paired.