Domanda di colloquio di Applitools

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

Risposte di colloquio

Anonimo

4 giu 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

Anonimo

4 giu 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