amitaiweil
BAN USER- 0of 0 votes
Answera matrix contains positive integer numbers.
- amitaiweil in United States
Each column and row, which contains zero should be reset all to 0.
(The reset column/line should be skipped while iteration)
Is there a way in C for doing this without using another temp full array for knowing where the zero's which have been found exist?| Report Duplicate | Flag | PURGE
None None C - 0of 0 votes
AnswersA function receives a big array (about 1G).
- amitaiweil in Isreal
after manipulations done on the array it's data
will be erased. What should you're attitude be to dealing with the array? (I didn't understand totally the interviewer's meaning| Report Duplicate | Flag | PURGE
צבאד Software Engineer C - 0of 0 votes
Answersread the 5'th bit from a byte
- amitaiweil in Isreal| Report Duplicate | Flag | PURGE
צבאד Software Engineer C - 0of 0 votes
AnswerWrite a function which returns
- amitaiweil in Isreal
the multiplication of two inputs,
without using "return"| Report Duplicate | Flag | PURGE
צבאד Software Engineer C - 0of 0 votes
AnswerBonus question -5: Build all permutations of a char array
- amitaiweil in Isreal| Report Duplicate | Flag | PURGE
Brossh Developer Program Engineer - 0of 0 votes
Answers2. Implement a double linked list
- amitaiweil in Isreal| Report Duplicate | Flag | PURGE
Brossh Developer Program Engineer C
int main()
{
int x = 0xF5;
int res;
res = x >> 4;
res&= 0x01; // answer
Thanks,
Any special reason why to use a do-while?
{ static void Main(string[] args)
{
double res;
for (int i = 1; i < 10; i++)
{
for (int j = 1; j < 10; j++)
{
for (int k = 1; k < 10; k++)
{
res = Math.Pow(i, 3) + Math.Pow(j, 3) + Math.Pow(k, 3);
if ( res == int.Parse(i.ToString() + j.ToString() + k.ToString()) )
{
Console.WriteLine(res);
}
}
}
}
Console.ReadLine();
}}
- amitaiweil February 03, 2020