count the number of distinct duplicated characters in a stringThank you all. I solved it in a different way [code]int dc (string s) { int i, j, c=0, k=0; for (i...
return to original position commandsThanks. However, how the following command "RF" which means right 90 degrees and forward one step, w...
return to original position commandsHello guys, I have a problem kinda disturbing. Suppose I am at O(0,0) and I can go one step forward...
count the number of distinct duplicated characters in a stringDo you mean to use a set? Is there a method for strings to compare each character to the next one?
count the number of distinct duplicated characters in a stringHello guys, Do you have any idea how to count the number of distinct duplicated characters that a...