Skip to content

Instantly share code, notes, and snippets.

@bornfree
Last active February 23, 2019 06:17
Show Gist options
  • Save bornfree/3151ee65be72d9232b48a89385284b6a to your computer and use it in GitHub Desktop.
Save bornfree/3151ee65be72d9232b48a89385284b6a to your computer and use it in GitHub Desktop.
Technical Intern basic test

The two questions are intended to be short and simple that you can implement each in half-an-hour.

Some rules:

The criteria for evaluation are

  • Efficiency of the code
  • Documentation and formatting
  • Separation of concerns
  • A general taste in programming :)

Question 1: File comparison

Please write this either in Python or in Javascript(executable via NodeJS). Submit this answer as public Github gist.

There are 3 zip files hosted at http://staging.imgtranslate.com:9999/ with names a.zip b.zip and c.zip. They each contain text files with sentences on new lines.

You are required to write a program that:

  • Downloads them
  • Unzips them
  • Compares the sentences of each file with others
  • Only prints pairs of files that contain duplicate sentences

Question 2 : DVD bouncing logo

Please write this using Javascript (any framework is ok. Plain JS is also ok). Submit this answer as a public pen on CodePen.

Make a box on a webpage and implement the DVD bouncing logo as seen in this video. https://www.youtube.com/watch?v=Kxms-OtUXS0

Please don't Google for implementations. If you can find them, so can we. It's not that hard to implement. Give it a shot. :)

@dtgoyal1
Copy link

dtgoyal1 commented Feb 8, 2019

@bornfree In the first question, what exactly needs to be compared? a.zip contains three .txt files while b.txt contains 2 .txt files. Do I need to compare all the files in a.zip with all the files in b.zip? Secondly, between any two files, do I need to check that if all sentences of one file are present in the second file, i.e. one is a subset of another, then print the pair.

@dtgoyal1
Copy link

The link hosted http://staging.imgtranslate.com:9999/ is dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment