warriorprincess
04/23/2018, 5:55 PMAndreas Sinz
04/23/2018, 5:59 PMwarriorprincess
04/23/2018, 6:02 PMAndreas Sinz
04/23/2018, 6:05 PMisPalindrome
instead of "converting" it into a CharArray
, but there is not much more performance to get in the way you do itwarriorprincess
04/23/2018, 6:06 PMAndreas Sinz
04/23/2018, 6:07 PMwarriorprincess
04/23/2018, 6:07 PMAndreas Sinz
04/23/2018, 6:10 PMtoCharArray()
copies every character one by one and because you do it twice + you reverse it, you are iterating over the string 3 timespetersommerhoff
04/23/2018, 6:13 PMwarriorprincess
04/23/2018, 6:20 PMpetersommerhoff
04/23/2018, 6:21 PMwarriorprincess
04/23/2018, 6:23 PMpetersommerhoff
04/23/2018, 6:32 PM