How do you consider a code as a "bad code"?
Junior C Developer Interview Questions
186 junior c developer interview questions shared by candidates
Given a partially sorted array (it has an unsorted part in it) design an algorithm that finds the start and end indices of the unsorted part of that array in linear time.
C questions, pointers, functions, OOP concepts
They ask me about different data structures, sql functions,etc.
How to answer my low GPA
what is the way to do the function more efficiency?
None None None None None
greedy algorithm
Given a square chessboard of N x N size, the position of Knight and position of a target is given. Find out the minimum steps a Knight will take to reach the target position.
Identify memory leak: // this function has a memory leak. Can you find it? int i = 5; // <-- char *pszString = (char *)malloc(32); memset(pszString, 0, sizeof(32)); strcpy(pszString, "hi"); if (i > 5) { sprintf(pszString, "%i is greater than 5", i); printf("%s\n", pszString); free(pszString); } else if (i < 5) { sprintf(pszString, "%i is less than 5", i); printf("%s\n", pszString); free(pszString); } }
Viewing 41 - 50 interview questions