Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right.

Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right.

a function that returns all words from the grid in this manner [(“MYWORD1”,Just((7,0),Back), “MYWORD2”, Just ((2,1), Up)], having as types: type Grid = [[Char]], placement = (Position, Orientation), Position = (Int, Int) representing a (col, row) beginning at 0 and data Orientation = Forward | Back | Up | Down | UpForward | UpBack | DownForward | DownBack deriving (Eq,Ord,Show,Read)

The post Given a square grid, each word appears as a sequence of characters. Find all the words in every possible direction: vertically up or down, horizontally left or right, diagonally up-left, up-right, down-left, or down right. appeared first on Essay Quoll.

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X