Applitools interview question

Write a function to determine whether a string has any repeated characters.

Interview Answers

Anonymous

4 June 2019

using namespace std; const int MAX = 256; bool uniqueStr(string str){ if (str.length()>MAX) { return false; } bool chars[MAX] = {false}; for (int i=0; i

Anonymous

4 June 2019

using namespace std; const int MAX = 256; bool uniqueStr(string str){ if (str.length()>MAX) { return false; } bool chars[MAX] = {false}; for (int i=0; i

1