Skip to content

Ports - Amy M#10

Open
amyesh wants to merge 1 commit intoAda-C11:masterfrom
amyesh:master
Open

Ports - Amy M#10
amyesh wants to merge 1 commit intoAda-C11:masterfrom
amyesh:master

Conversation

@amyesh
Copy link
Copy Markdown

@amyesh amyesh commented May 2, 2019

No description provided.

Copy link
Copy Markdown

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This definitely works and with the space & time complexity you listed. There is a counterintuitive way to solve the problem without the sets you used, instead using the 1st row and 1st column to store the row and columns to zero out. However this is a good solution. Nice work.

matrix[2][4] = 0 # row 2, column 4
rows_array = [1, 2]
columns_array = [3, 4]
binding.pry
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You seem to have left a pry in :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants