CodeX
Published in

CodeX

CODEX

Learning Go Lang Days 27 — Find out if a word is an anagram in Go Lang #100daysofcode

Having spent yesterday looking at how to write the code for Fizz Buzz in Go Lang I thought I would continue with the typical code test questions and today write a go lang method that takes two words and returns whether they are an anagram of one another.

To do this we first need to understand what an Anagram is. A word is an anagram of another word if it contains all the same letters. For example listen is an anagram of silent.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store