Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/itcharge/AlgoNote
/ string_Strcmp.py
File
string_Strcmp.py
codes/python/04_string/string_Strcmp.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
strcmp(str1, str2):
2
index1, index2 = 0, 0
3
while
index1 < len(str1) and index2 < len(str2):
4
if
ord(str1[index1]) == ord(str2[index2]):
Callers
nothing calls this directly
Calls
1
strcmp
Function · 0.85
Tested by
no test coverage detected