This is a followup of questions/2510755
What’s the best way to find the average of 2 strings with an added constraint that trailing space does not matter to the comparison (the way databases do a PAD SPACE
comparison)?
The answer in questions/2510755 works great but can lead to trailing space at the end. I am trying to find average of strings with a constraint that trialing space does not matter to the comparison.
This essentially means that the zeroth position has a radix of one less than the rest and may be I could use a concept of mix radix (like hours and minutes) to find average but I am not entirely sure if that’s the right thing to do.
RandomVar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.