Junior Data Engineer Interview Questions

470 junior data engineer interview questions shared by candidates

Implement the following functions: /* Insert a new client to the data structure */ void insertClientWithToken(const char name[NAME_SIZE], const int token) /* Perform a lookup which will return the name of the client in the data structure with a token of max value */ const char* getClientWithMaxToken() const /* Retrieve the value of the token corresponding with the input name */ int getToken(const char name[NAME_SIZE]) const /* Increase the values of all the tokens added until now but not the ones added after this call */ void increaseAllTokensByValue(const int value) This is the main: int main() { ClientDs ds; ds.insertClientWithToken("Alice", 3); ds.insertClientWithToken("Bob", 5); cout << ds.getClientWithMaxToken() << endl; // prints "Bob" cout << ds.getToken("Alice") << endl; // prints 3 ds.increaseAllTokensByValue(3); cout << ds.getToken("Alice") << endl; // prints 6 cout << ds.getToken("Bob") << endl; // prints 8 ds.insertClientWithToken("Eve", 7); cout << ds.getClientWithMaxToken() << endl; // prints "Bob" return 0; } To finish off implement the class.
avatar

Junior Data Path Engineer

Interviewed at Dell Technologies

3.7
Jan 3, 2022

Implement the following functions: /* Insert a new client to the data structure */ void insertClientWithToken(const char name[NAME_SIZE], const int token) /* Perform a lookup which will return the name of the client in the data structure with a token of max value */ const char* getClientWithMaxToken() const /* Retrieve the value of the token corresponding with the input name */ int getToken(const char name[NAME_SIZE]) const /* Increase the values of all the tokens added until now but not the ones added after this call */ void increaseAllTokensByValue(const int value) This is the main: int main() { ClientDs ds; ds.insertClientWithToken("Alice", 3); ds.insertClientWithToken("Bob", 5); cout << ds.getClientWithMaxToken() << endl; // prints "Bob" cout << ds.getToken("Alice") << endl; // prints 3 ds.increaseAllTokensByValue(3); cout << ds.getToken("Alice") << endl; // prints 6 cout << ds.getToken("Bob") << endl; // prints 8 ds.insertClientWithToken("Eve", 7); cout << ds.getClientWithMaxToken() << endl; // prints "Bob" return 0; } To finish off implement the class.

Viewing 111 - 120 interview questions

Glassdoor has 470 interview questions and reports from Junior data engineer interviews. Prepare for your interview. Get hired. Love your job.