Photo Credits: Stackify Github Repository: Link Application testing has proved to be a very important aspect of the modern day software development process. We want to make sure that we are shipping software of high quality and one that would not break in production. Catching bugs could be hard work and trust me you do not want your users to have a bad experience whilst using your application. End-to-end testing ensures that one catches bugs around user interaction before deploying the application to production.
Image credits: Pixelstalks Question Write a function to return the maximum occurring character in the input string e.g., if input string is “Test” then function should return ‘t’. Note: capital letter ‘T’ and small letter ‘t’ should count as the same. In writing a function to satisfy the above question, the first thing to do is to change every input entered by the user to lower case. Let us consider the string ‘Test’, our expected result is that the letter ‘t’ should return 2, the letter ‘e’ and ‘s’ should return 1.
Image Credits: CarfromJapan To solve the reversed integer and reversed string algorithms, we would need to refer to some of the Logic we used in Part 1 of this series, click here to see the post. I’d be dealing with the more complex algorithm which is reversing an integer before solving reversing a string, in fact, if you can reverse an integer you should have no problem reversing a string.