Building a Smart IDE: Programming Language Detection Discussions | Regex | HackerRank

Building a Smart IDE: Programming Language Detection

  • + 4 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.