WEEKDAY CHALLENGE: Fingerprint Test
⚠️!!SPOILERS IN COMMENTS!!⚠️
⚠️!!SPOILERS IN COMMENTS!!⚠️
⚠️!!SPOILERS IN COMMENTS!!⚠️
🔑 KEY RULE: Upload your answer in PDF only, raw spoilers will be deleted.
PS: Don't forget to add comments in your code.
=====
Given two strings representing fingerprints, determine if they are a match using the following rules:
  • Each fingerprint will consist only of lowercase letters (a-z).
  • Two fingerprints are considered a match if:
  • They are the same length.
  • The number of differing characters does not exceed 10% of the fingerprint length.
Your Code Should Pass All 6 Tests:
1. is_match("helloworld", "helloworld") should return True.
2. is_match("helloworld", "helloworlds") should return False.
3. is_match("helloworld", "jelloworld") should return True.
4. is_match("thequickbrownfoxjumpsoverthelazydog", "thequickbrownfoxjumpsoverthelazydog") should return True.
5. is_match("theslickbrownfoxjumpsoverthelazydog", "thequickbrownfoxjumpsoverthehazydog") should return True.
6. is_match("thequickbrownfoxjumpsoverthelazydog", "thequickbrownfoxjumpsoverthehazycat") should return False.
=====
Goodluck.
~ aScriptKiddie
1
0 comments
Bree Kagwe
5
WEEKDAY CHALLENGE: Fingerprint Test
powered by
The Black Widow Community
skool.com/bree-1280
Get Paid To Hunt Bounties, Solve CTF's & Compete For Gadgets.
It's all here.
Want to become an ethical hacker? We built this community for you.
Build your own community
Bring people together around your passion and get paid.
Powered by