Pergunta de entrevista da empresa Meta

Given two sparse matrices, how would you compute the dot product?

Respostas da entrevista

Sigiloso

3 de out. de 2017

Provided a tuple implementation. Did get confused on the efficiency. Suggested a dictionary but then realized memory wise, tuples are better.

1

Sigiloso

8 de out. de 2018

import numpy numpy.dot(a,b)