Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 85c5f535d8 | |||
| 390f7ef7d9 |
@@ -64,7 +64,7 @@ char most_frequent(const char *str){
|
||||
free(values);
|
||||
return *cha;
|
||||
}
|
||||
|
||||
/*
|
||||
int main () {
|
||||
|
||||
char test = most_frequent("WRYYYY!1!"); // 'Y'
|
||||
@@ -74,4 +74,4 @@ int main () {
|
||||
printf("%c\n",test);
|
||||
test = most_frequent('\0'); // 'l'
|
||||
printf("%c\n", test);
|
||||
}
|
||||
}*/
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
int *my_factor(int n){
|
||||
|
||||
if (n <= 0) return NULL;
|
||||
if (n == 1) return 1;
|
||||
//if (n == 1) return 1;
|
||||
|
||||
int cnt = 0;
|
||||
int tmp = n;
|
||||
|
||||
@@ -48,7 +48,7 @@ void my_strapp(char *src, char **dest){
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
int main(){
|
||||
|
||||
char *src = strdup("World!");
|
||||
@@ -60,4 +60,4 @@ int main(){
|
||||
printf("%s", *dest_ptr);
|
||||
free(src);
|
||||
free(dest);
|
||||
}
|
||||
}*/
|
||||
|
||||
@@ -56,7 +56,7 @@ char *replace(char *str, char *sub){
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
int main(){
|
||||
|
||||
|
||||
@@ -67,4 +67,4 @@ int main(){
|
||||
test = replace("*H*e*l*l*o*", "BIM"); // BIMHBIMeBIMlBIMlBIMoBIM
|
||||
printf("%s\n", test);
|
||||
free(test);
|
||||
}
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user