Thoughtworks Interview Question

What data structure to use for Smartphone lock screen

Interview Answers

Anonymous

Aug 25, 2016

A 3x3 2D array?, just store the sequence in which the blocks have to be selected

Anonymous

Aug 26, 2016

Graph data structure can be used, which consists of vertices, edges and x,y relation between vertices

Anonymous

Oct 25, 2016

graph (gesture) datastructure

Anonymous

Oct 26, 2017

A Unidirectional Graph Datastructure