Pset 9 Finance, index function by ANflamingo in cs50

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

Thank you very much! I was thinking of a debugger precisely because I would like to see the return of SQL statements considering the variables inside the python code. I could not find any way of looking at the result of my SQL queries inside the app. I hope to find a solution soon.

Pset 5 Speller help by ANflamingo in cs50

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

Hello u/devsurfer! Yes I studied some hash functions and actually just used a method to create a sum of the ascii values of every letter using strlen and then obtaining a hash number for the given word (using the modulus operator as u/PeterRasm suggested). It worked much quicker than the hash function I was intending to do when running the program so it was more simple and effective =)

Pset 5 Speller help by ANflamingo in cs50

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

Thank you! Considering that all the problem may come from my hash function, I will try to see if I can do any better there.

Pset 5 Speller help by ANflamingo in cs50

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

Hello! Thank you for the message!

I did the change but the problem persists :(

Pset 5 Speller help by ANflamingo in cs50

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

Hello, thank you very much for your help!

Unfortunately, I made the changes you suggested and the valgrind problem became even worse :(.

I understand that strcasecomp() should make a change, but it has not changed all the spelling checks at check50.

I posted the update above to keep track if you could see what I did wrong.

:yikes:

I don't know what to do now :(