Companies Home Search Profile

Interview Prep: The Anagram Check

Focused View

Edaqa Mortoray

23:59

102 View
  • 01. Introduction.mp4
    00:39
  • 02. Algorithm Design.mp4
    03:22
  • 03. Unicode Version.mp4
    05:47
  • 04. Algorithm Code.mp4
    03:44
  • 05. Unicode Code.mp4
    05:59
  • 06. Language Base Code.mp4
    01:57
  • 07. Emoji Code.mp4
    02:00
  • 08. Conclusion.mp4
    00:31
  • lesson1.1.zip
  • lesson1.2.zip
  • lesson1.3.zip
  • lesson1.4.zip
  • lesson1.5.zip
  • lesson1.6.zip
  • lesson1.7.zip
  • lesson1.8.zip
  • More details


    In this class I take a look at this classic interview question. You’ll learn how to solve the basic version, but I’ll go deeper and show you improvements for foreign languages and unicode.

    I’ve provided source code, in annotated Python, for all of the algorithms I discuss. The latter half of the course walks through the code, explaining the decisions I’ve made.

    Source Code: Github.com

    Before you look at my examples, try to implement the algorithms I describe. In each case you’ll have a function that takes two strings as arguments and should return true if they are anagrams.

    There are a few versions to implement, from easiest to hardest:

    • Basic english without accents and comparing all characters. Test Case: proteins and pointers
    • Ignore the case of the letters and drop all whitespace. Test Case: Big Bad Snake and Beanbag Kids
    • Non-English support with accents. Test Case: trêve and reve\u0302t (Encode appropriately for your programming language)
    • Dropping accents. Test Case: trêve and verte

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Edaqa Mortoray
    Edaqa Mortoray
    Instructor's Courses
    Hi, I'm Edaqa, a programmer, writer and chef. For over 20 years, I've been following a diverse and exciting career path. My journey traces through several countries, filled with great people and culture. I've dedicated my time to numerous startups, and an abundance of side projects. There's so much I'd like to share with all with you -- from programming to cooking, to the unusual creative endeavours. I want my classes to give you the confidence you need to succeed, and the curiosity required to make the most of life. Join me in my continuing adventures.
    Learn Web Design & Development with SitePoint tutorials, courses and books - HTML, CSS, JavaScript, PHP, Responsive Web Design.
    • language english
    • Training sessions 8
    • duration 23:59
    • Release Date 2023/09/25

    Courses related to Software Testing

    Courses related to Software Engineering