human
Efficiently check if a string has all unique characters without using any additional data structure | Driver code"
Solution in Python:
assistant
#Here is code to efficiently check if a string has all unique characters without using any additional data structure and the other steps required.
 def unique ( s ) :
	s = list ( s )
	s . sort ( )
	for i in range ( len ( s ) - 1 ) :
		if ( s [ i ] == s [ i + 1 ] ) :
			return False
			break
	return True
if ( unique ( " abcdd " ) == True ) :
	print ( " String ▁ is ▁ Unique " )
else :
	print ( " String ▁ is ▁ not ▁ Unique " )