ASCII – Editorial

PROBLEM LINK:

Practice
Contest

Author: Najiba Halim
Tester: Amitkumar Jha
Editorialist: Najiba Halim

DIFFICULTY: Easy

PROBLEM:

Problem Statement: Given a string, output the character having minimum ASCII value.

QUICK EXPLANATION:

Scan through the string and find the character with minimum ASCII value

EXPLANATION:

Maintain a Variable, maxCount.

Initialize it to -1.

Scan through the string and check the ASCII value of each character in the string and compare it with maxCount. If the value of current character is greater than MinCount, then set that value as maxCount.

Print the ASCII Character