DEV Community

Cover image for An elegant string recognition algorithm
Jaksa Bilic
Jaksa Bilic

Posted on

An elegant string recognition algorithm

As a part of my IT journey on Codecademy, I had a project task to design a pattern searching algorithm. This is a commonly used algorithm that searches for a specific value within a larger set of data. I have conceived an algorithm in my mind and proceeded to write out its pseudocode as well as its Python code.

Pseudocode:

Image description

Python code:

Image description

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay