Estimate Token Count
Write a sample function to estimate how many tokens are in the text, using the tokenizer you wrote in question two.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
