Skip to content

Instantly share code, notes, and snippets.

@AzureXie
AzureXie / code_challenge.md
Created October 8, 2025 09:41
code challenge

Question

Write a function in any preferred language that takes a string as input and return a dictionary where the keys are words and the values are the number of times each word appears in the string.

Challenge 1

Ignore case (e.g "Hello" and "hello" should be counted as the same word).

Challenge 2

Ignore punctuation (e.g "Hello," and "hello!" should be counted as the same word).