Commit 764960f6 authored by William Sha's avatar William Sha
Browse files

Edited docx

Added specifications and some functions complexities.
parent ba3027cb
No preview for this file type
......@@ -35,7 +35,7 @@ void insert_empty_list(List** list, char* str){
int length = strlen(str), total = 0, i;
while(length > 0){
while(length > 0){ // O(strlen(str)) car le second while est lié
i = 0;
Element* e = malloc(sizeof(Element));
e->data = malloc(sizeof(char)*N);
......@@ -185,7 +185,7 @@ int compare(char* str1, char* str2){
int int1 = 0, int2 = 0, i = 0;
int length = strlen(str1) > strlen(str2) ? strlen(str2) : strlen(str1);
while(i < length){
while(i < length){ // O(min(strlen(str1), strlen(str2)))
int1 = int1*10+car1-'0';
int2 = int2*10+car2-'0';
i++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment