ראיון ראשון - תרגיל בית.
תשובת המראיינים לפתרון שלי:
Sagi,
Thank you for submitting your resume for the Junior C++ Developer position at Browzwear.
After reviewing your experience and qualifications, we decided to move forward with other candidates.
We will retain your resume and keep you in mind for future opportunities that may be a better match.
We wish you the best in your job search!
Sincerely,
Lee Gal
HR manager
שאלות מתוך הראיון
There are the following classes:
Class Image
{
std::vector> pixelArr;
...
};
Enum Color = {RED, BLUE, GREEN, YELLOW, WHITE, BLACK};
Class Pixel
{
Color GetColor();
...
};
The Task
Write the following function:
std::set> GetSameColorNeibours(const Image& image, std::pair startingIdx)
{
// your solution here
}
The function should return the indices of the pixels in the area of startingIdx that have the same color as it.
Example
Given the following image:
BLUE BLUE RED WHITE WHITE RED BLUE
BLUE RED RED RED WHITE RED RED
RED RED YELLOW RED WHITE BLUE BLUE
YELLOW YELLOW RED YELLOW GREEN GREEN RED
YELLOW YELLOW RED YELLOW GREEN GREEN RED
YELLOW YELLOW YELLOW YELLOW GREEN GREEN RED
startingIdx = (1, 1)
The result will be: (the order doesn’t matter)
[(0,2), (1,1), (1,2), (1,3), (2,0), (2,1), (2,3)]
bool ** checked = new bool*[rows];
for (int i = 0; i < rows; i++)
checked[i] = new bool[cols];
for (int i = 0; i < rows; i++)
for (int j = 0; j < cols; j++)
checked[i][j] = false;
יש גם את הפונ' הבאה, אין מספיק מקום לרשום אותה (מוגבל ל1000 תווים)
void FindNeighbours(Image image, int row, int col, bool** checked, int totalRows, int totalCols, set> & setSameColorNeighbours)
דצמבר 2019
מישהו התקבל ועשה ראיון שני(אישי) בבראווזויר למשרת פיתוח C/C++?
דצמבר 2019
שבוע אחרי שהגשתי את הפיתרון, קיבלתי מייל שהם רוצים לקיים ראיון טלפוני של 20 דק'.
בפועל שיחה של 6 דק' שבעיקר הסבירו לי על החברה.
נשאלתי אם יש לי פוריקט רציני מהלימודים בcpp (עניתי שלא).
שאלו כמה זמן לקח המטלה (4 שעות)וציפיות שכר.
נאמר לי שהפרטים שלי יועברו לראש צוות שתיצור איתי קשר.
לאחר יום קיבלתי אותו מייל כמו למעלה רק שהם הודו לי על השיחת טלפון.
אז אני אודה להם פה על זה שהם ביזבזו לי 4 שעות.