Questions tagged [substrings]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
105 views

DNA is good for the small database but not for the large database - CS50 Pset6

I'm currently developing the small and the large database functions separately and I wonder why in the large one it does not keep track of the STR repetitions. Here is my code from both functions: ...
0
votes
1answer
20 views

I am not sure what is wrong with my substrings code

def substrings(a, b, n): """Return substrings of length n in both a and b""" # takes in strings input a and b # splits each string into substrings lista = [a[i:j] for i in range(0, (...
0
votes
1answer
97 views

PSET 7 similarities substrings function seems ok but dont pass test

I make a substrings function, it seems to work for me, but i cant pass check. :( handles one substring in common Expected 1 matches, not 0 :( handles multiple substrings in common Expected 4 ...
0
votes
1answer
107 views

I'm stuck on cs50 pset2 - crack

I am new to coding. I am trying to solve crack problem of cs50. The problem works hashing 1 character, but when i try to hash 2 characters i can't pass arguments from the string to the crypt function. ...
0
votes
1answer
103 views

Trouble with Substrings in Check in Pset5

I have used a trie structure to implement my dictionary in pset5 and I believe my load() function is operating correctly, however I seem to be having trouble with checking substrings in the check() ...
0
votes
1answer
322 views

pset5 speller doesn't handle possesive and substrings properly

I got the following error while checking my pset5. :( handles possessives properly \ expected output, but not "\nMISSPELLED WORDS\n\n\nWORDS MISSPELLE..." :( handles substrings properly \ ...