Emoji Filesystem Navigator

Par 4
Question 11beginnerSheet 1750822302

Deep Breath

A Gen Z intern replaced all file extensions with emojis because JPEG is so millennial. They've gone viral on TikTok with filesystem tutorials while users navigate directories using mood indicators instead of paths. The entire company now communicates in pictographs and nobody remembers what a folder hierarchy actually looks like. Your task: Navigate an emoji-based filesystem where each symbol represents a file type or directory action. It's like hieroglyphics but with more daddy issues.

Why You're Doing This

You're building a file path translator that converts emoji sequences to traditional filesystem navigation. This tests symbol-to-meaning mapping, path construction, and working with Unicode character sets. Think of it as internationalization for people who communicate exclusively through tiny pictures.

Take the W

  • Correctly translates emoji sequences to file paths
  • Handles directory navigation symbols
  • Produces valid filesystem paths

Hard L

  • Generates invalid path characters
  • Confuses files with directories
  • Produces circular directory references

Edge Cases

  • Emoji sequence with no file at the end
  • Conflicting directory symbols in sequence
  • Emojis representing concepts not mappable to filesystem
  • Unicode variations of same emoji meaning
  • Empty emoji string (root directory or error?)
Input Format:
String array of emoji characters
Expected Output:
Filesystem path string
Example:
["🏠", "📁", "💼", "📄"] → "/home/documents/work/file.txt"
Hints
  • 💡 🏠=home, 📁=directory, 📄=.txt, 🖼️=.jpg, 🎵=.mp3, 💼=work, 🎮=games
  • 💡 ⬆️=parent directory, ➡️=enter directory
  • 💡 Emoji order matters for path construction