<commit_before>---
layout: post
title:  "Cassidoo Week #173"
---

Here is the interview question of [cassidoo](https://cassidoo.co/) newsletter #173:

Given two non-negative integers n1 and n2 represented as strings, return the product of n1 and n2, also represented as a string. Neither input will start with 0, and don’t just convert it to an integer and do the math that way.

Examples:

```
$ stringMultiply(“123”, “456”)
$ “56088”
```

This puzzle looks simple but in fact is quite complicated. Let's take the and let's do all the step one by one:
<commit_msg>Fix typo<commit_after>---
layout: post
title:  "Cassidoo Week #173"
---

Here is the interview question of [cassidoo](https://cassidoo.co/) newsletter #173:

Given two non-negative integers n1 and n2 represented as strings, return the product of n1 and n2, also represented as a string. Neither input will start with 0, and don’t just convert it to an integer and do the math that way.

Examples:

```
$ stringMultiply(“123”, “456”)
$ “56088”
```

This puzzle looks simple but in fact is quite complicated. Let's take the example below and let's do all the step one by one:

{'fraction_non_alphanumeric': 0.09482001755926252, 'fraction_numerical': 0.038630377524143986, 'mean_word_length': 4.135135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '915841', 'n_tokens_mistral': 383, 'n_tokens_neox': 336, 'n_words': 171}