{"id":782,"date":"2020-04-01T11:28:54","date_gmt":"2020-04-01T09:28:54","guid":{"rendered":"https:\/\/devpath.pro\/?p=782"},"modified":"2020-04-01T11:28:54","modified_gmt":"2020-04-01T09:28:54","slug":"tech-challenge-explained","status":"publish","type":"post","link":"https:\/\/fabiocicerchia.it\/career\/tech-challenge-explained","title":{"rendered":"Tech Challenge Explained"},"content":{"rendered":"

The tech challenged I’ve used in Skuola.net was designed in order to be submitted by any developer, regardless the experience level or the programming language.<\/p>\n

So the easiest choice was to do an algorithm test, and amongst the infinite list of test you can find online, I’ve picked one based on anagrams.<\/p>\n

Another self-imposed constraint was about simplicity, no-one should’ve worked on it for more than a couple of days. The tests could’ve been solved in a couple of hours with no problems (in fact, the fastest candidate took half an hour).<\/p>\n

Here’s the task:<\/p>\n

Objective: <\/em>Check that an anagram of a string is contained in another string.<\/p>\n

Task:<\/em> Prepare a command-line script which accepts 2 strings in input, checks if a given string A is any anagram contained in a string B, and prints out “true” or “false” based on the result of such comparison.<\/p>\n

Assume that:<\/em><\/p>\n