Skip to content

mhekel/Data-assessment-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Coding Exercise:

Decoding a Secret Message

  • You are given a published Google Doc https://docs.google.com/document/d/e/2PACX-1vSvM5gDlNvt7npYHhp_XfsJvuntUhq184By5xO_pA4b_gCWeXb6dM6ZxwN8rE6S4ghUsCj2VKR21oEP/pub that contains a list of Unicode characters and their positions in a 2D grid.

  • Your task is to write a function that takes in the URL for such a Google Doc as an argument, retrieves and parses the data in the document, and prints the grid of characters.

  • When printed in a fixed-width font, the characters in the grid will form a graphic showing a sequence of uppercase letters, which is the secret message.

  • The document specifies the Unicode characters in the grid, along with the x- and y-coordinates of each character.

  • The minimum possible value of these coordinates is 0.

  • There is no maximum possible value, so the grid can be arbitrarily large.

  • Any positions in the grid that do not have a specified character should be filled with a space character.

  • You can assume the document will always have the same format as the example document linked above.

  • The table below contains the input data needed to solve the coding assessment exercise.

    x char y
    87 0

Specifications

Your code must be written in Python (preferred), JavaScript, TypeScript, Java, Kotlin, C#, C++, Go, Rust, Swift or Ruby. You may use external libraries. You may write helper functions, but there should be one function that:

  1. Takes in one argument, which is a string containing the URL for the Google Doc with the input data, AND
  2. When called, prints the grid of characters specified by the input data, displaying a graphic of correctly oriented uppercase letters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages