Pergunta de entrevista da empresa Applitools

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

Respostas da entrevista

Sigiloso

4 de jun. de 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

Sigiloso

4 de jun. de 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