C++

[Solved] Distance between 2 Points with C++

[Solved] Distance between 2 Points with C++

Distance between 2 Points: Mrs. Anitha , our favourite Maths teacher wanted to teach her new batch students to find the distance between 2 points.Write a program to accept 2 points and to calculate the distance between them using functions…

[Solved] Odd or Even with C++

[Solved] Odd or Even with C++

Odd or Even: Mrs. Anitha , our favourite Maths teacher wanted to teach her students to check whether the given number is odd or even.Write a program to accept an integer and to check whether the given number is odd…

[Solved] Minimum and Maximum with C++

[Solved] Minimum and Maximum with C++

The ExConFair is the region’s largest trade fair on Construction Equipments & Technology. The Event organizers hired college students as volunteers to work at the fair as the event is targeted to be attended by approx. 30 million visitors. At…

[Solved] Four Seasoners with C++

[Solved] Four Seasoners with C++

Four Seasoners: Dinesh also joined the group of 3 idiots and now their group is called Four Seasoners. Meanwhile, Binoy has moved to a new house in the same locality. Now the houses of Ajay, Binoy and Chandru are in…

[Solved] Total Expenses with C++

[Solved] Total Expenses with C++

Total Expenses: The much awaited event at the entertainment industry every year is the “Screen Awards”. This year the event is going to be organized on December 25 to honour the Artists for their professional excellence in Cinema. The Organizers…

[Solved] Rolling Hash Contest Problem

[Solved] Rolling Hash Contest Problem

You are given a string S and a Pattern P. You need to find all matches of hash of P in string S. Also, print the index (0 based) at which the pattern’s hash is found. If no match is found, print -1. Note: All the matches should have same length as pattern P.…