Uh oh!
There was an error while loading. Please reload this page.
London | 25-SDC-Nov | Aida Eslamimoghadam | Sprint 2 | Use precomputing for better performance - #145
Conversation
aydaeslami
commented
Jul 7, 2026
Thank you, @cjyuan, for your help and support. For " find_longest_common_prefix" : And For " count_letters" : |
cjyuan
commented
Jul 7, 2026
Sorting strings involve comparing strings character by character. If we take into account, |
aydaeslami
commented
Jul 20, 2026
Thanks @cjyuan, Yes, you are right. i missed the cost of string comparison during sorting. This part is a bit complicated for me. Please let me know if I need to change anything. Many thanks. |
cjyuan
commented
Jul 20, 2026
All good. Nothing needs to be changed. |
Self checklist
Changelist
Introduced precomputing to reduce repeated work and improve performance of common_prefix and count_letters functions.