Back
Close

Uniqueness Check

Anonymous
2,018 views

Use

/*

  • Function hasUniqueChars2
  • Args - std::string
  • Output:: True if string has all characters which are unique
  •      False if string has at least one repeated char.
    
  • Assumption:: string only contains (a..z), 26 chars. */
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io