Feature #6: Most Common Token
Implement the "Most Common Token" feature for our "Language Compiler" project.
We'll cover the following
Description
For this feature of the language compiler, the program statements are given to us as a string. We want to determine the variable or function that is most commonly referred to in a program. In this process, we want to ignore the language keywords. For example, a keyword may be used more frequently than any variable or function. The language keywords are given as an array of strings.
Let’s say you are given the following program as input:
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.