Interview Question - A question is asked during an interview with a big Product based
company, in which the candidate was suggested to have own Vector representation.
Initial thought - Candidate must first ask to provide the kind of data to be represented by such
Vector representation. Second, mostly self declared intelligent people take interviews in these
so called Big Product based companies.
Fact - 90% chances are that you will not be working on anything around Vectors & 99%
chances are that such companies will either be having own Vector representations or using
some 3rd Party library. Vector mathematics in itself a bit complex topic, to be expected from
any Software Engineer in general, when most don't work on these.
Generally, these candidates are also from such companies, so they start giving solutions
thinking that they are giving optimized ones & saving memory & time.
One such solution I came to know-
Use map to represent a vector, to represent its properties & their values.
Reason given - It will save the empty space of no existing peroperty.
My thought - Such way can be used for some temporary problem where vectors & their
properties are known along with the kind of operations to be done.
Initially these ways may look cool but cause severe issues later.
Never ever use such, as long term solutions for real Vector operations.
Vectors can be 1D, 2D or 3D etc, I don't know its depth. But, if you don't have any control on
the kind of vectors you are going to recieve then Map kind of ways will only complicate the
code later.
It is always to have proper representations of such Vectors or better check 3rd Party libraries
rather re-inventing the wheel & wasting lot of money & time in such activities.
company, in which the candidate was suggested to have own Vector representation.
Initial thought - Candidate must first ask to provide the kind of data to be represented by such
Vector representation. Second, mostly self declared intelligent people take interviews in these
so called Big Product based companies.
Fact - 90% chances are that you will not be working on anything around Vectors & 99%
chances are that such companies will either be having own Vector representations or using
some 3rd Party library. Vector mathematics in itself a bit complex topic, to be expected from
any Software Engineer in general, when most don't work on these.
Generally, these candidates are also from such companies, so they start giving solutions
thinking that they are giving optimized ones & saving memory & time.
One such solution I came to know-
Use map to represent a vector, to represent its properties & their values.
Reason given - It will save the empty space of no existing peroperty.
My thought - Such way can be used for some temporary problem where vectors & their
properties are known along with the kind of operations to be done.
Initially these ways may look cool but cause severe issues later.
Never ever use such, as long term solutions for real Vector operations.
Vectors can be 1D, 2D or 3D etc, I don't know its depth. But, if you don't have any control on
the kind of vectors you are going to recieve then Map kind of ways will only complicate the
code later.
It is always to have proper representations of such Vectors or better check 3rd Party libraries
rather re-inventing the wheel & wasting lot of money & time in such activities.