Skip to content

Contains an algorithm for a question asked in a Google coding interview.

License

Notifications You must be signed in to change notification settings

fkahraman/Google-Coding-Interview-Question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Interview Quesion

made-with-python

Convert non-adjacent ones to zero and return this array. If a number not found on the outside line is not connected with other ones on the outside line, it is converted to zero.

Algorithm


Class name: Corner Methods:

  • findCorner(): Detect corners
  • findNeighbor(): Detect all neighbor (With Recursion)
  • checkUp(): Check upper neighbor
  • checkLeft(): Check left neighbor
  • checkRight(): Check right neighbor
  • checkDown(): Check down neighbor
  • processArray(): Convert 1 to 0

Input


input

Output


out

Releases

No releases published

Packages

No packages published