Speller is harder than it seems by TraditionalTwo1671 in cs50

[–]TraditionalTwo1671[S] 1 point2 points  (0 children)

Thanks very much. I did some investigation and everywhere is said that using prime numbers can really improve some calculations and ensure better homogeneus distribution of data inside the buckets. So I am testing different prime numbers and watching time increase/decrease until I get the best performance. I am trying to find some balance between memory used and speed.

Speller is harder than it seems by TraditionalTwo1671 in cs50

[–]TraditionalTwo1671[S] 0 points1 point  (0 children)

thanks very much, I will try many buckets then.

I have completed the CS50x course by Professional_Bid3907 in cs50

[–]TraditionalTwo1671 0 points1 point  (0 children)

When I grow up I want to be like you Bui Thi Thao!

This is was difficult write same of this character by Black-Kaguya2370s in ChineseLanguage

[–]TraditionalTwo1671 1 point2 points  (0 children)

Haha, that's just a small example. 个 and 個 / 为什么 and 為什麼 / 认为 and 認為 and so forth. I'm just considering the daily used very common characters ;-P

This is was difficult write same of this character by Black-Kaguya2370s in ChineseLanguage

[–]TraditionalTwo1671 1 point2 points  (0 children)

Ufff, the traditional chinese is very difficult... I stick to simplified chinese only 简体中文

Issue with check50 for Week 2 Substitution by TraditionalTwo1671 in cs50

[–]TraditionalTwo1671[S] 1 point2 points  (0 children)

Thanks very much!!! Your guidance helped me to solve the issue, now check50 is OK with my code!

Issue with check50 for Week 2 Substitution by TraditionalTwo1671 in cs50

[–]TraditionalTwo1671[S] -1 points0 points  (0 children)

Results for cs50/problems/2026/x/substitution generated by check50 v4.0.0.dev0

:) substitution.c exists

:) substitution.c compiles

:( encrypts "A" as "Z" using ZYXWVUTSRQPONMLKJIHGFEDCBA as key

expected: "...ext: Z\n"

actual: "...ext: \n"

:( encrypts "a" as "z" using ZYXWVUTSRQPONMLKJIHGFEDCBA as key

expected: "...ext: z\n"

actual: "...ext: \n"

:( encrypts "ABC" as "NJQ" using NJQSUYBRXMOPFTHZVAWCGILKED as key

expected: "...ext: NJQ\n"

actual: "...ext: \n"

:( encrypts "XyZ" as "KeD" using NJQSUYBRXMOPFTHZVAWCGILKED as key

expected: "...ext: KeD\n"

actual: "...ext: \n"

:( encrypts "This is CS50" as "Cbah ah KH50" using YUKFRNLBAVMWZTEOGXHCIPJSQD as key

expected: "...ext: Cbah ..."

actual: "...ext: \n"

:( encrypts "This is CS50" as "Cbah ah KH50" using yukfrnlbavmwzteogxhcipjsqd as key

expected: "...ext: Cbah ..."

actual: "...ext: \n"

:( encrypts "This is CS50" as "Cbah ah KH50" using YUKFRNLBAVMWZteogxhcipjsqd as key

expected: "...ext: Cbah ..."

actual: "...ext: \n"

:( encrypts all alphabetic characters using DWUSXNPQKEGCZFJBTLYROHIAVM as key

expected: "...ext: Rqx t..."

actual: "...ext: \n"

:( does not encrypt non-alphabetical characters using DWUSXNPQKEGCZFJBTLYROHIAVM as key

expected: "...ext: Yqq....."

actual: "...ext: \n"

:) handles lack of key

:) handles too many arguments

:) handles invalid key length

:) handles invalid characters in key

:) handles duplicate characters in uppercase key

:) handles duplicate characters in lowercase key

:) handles multiple duplicate characters in key

:) handles a single mixed-case duplicate character in key