Building a Smart IDE: Programming Language Detection Discussions | Regex | HackerRank
We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This should be reclassified as easy, I didn't even really need regex. If the file has "#include" it's C, if it has "import java" it's Java, otherwise it's Python. This logic passed all cases.
Building a Smart IDE: Programming Language Detection
You are viewing a single comment's thread. Return to all comments →
This should be reclassified as easy, I didn't even really need regex. If the file has "#include" it's C, if it has "import java" it's Java, otherwise it's Python. This logic passed all cases.