Hi all,
Recently, in my computer science class, we encountered a problem in a book that seemed impossible to solve. (The teacher couldn't solve it either, so we aren't getting marks for it, which is why I'm posting it here. ).
Here's the problem: Write a function that can determine if all characters in a string are the same or not WITHOUT USING LOOPS OR RECURSION. Neither me, nor anyone else in my class could think of a solution. Not even the teacher.
I would appreciate if anyone who knows the answer would post a couple of hints, so I can take another shot at it.
Thanx for your time.