Percentage of Letter in String
Given a string s and a character letter, return the percentage of characters in s that equal letter rounded down to the nearest whole percent.
LeetCode Problem - 2278
class Solution {
public int percentageLetter(String s, char letter) {
d...
perfinsights.hashnode.dev1 min read