Pregunta de entrevista de Roblox

Two strings, find the first intersected character?

Respuestas de entrevistas

Anónimo

3 feb 2018

Implement a CD (change directory) function?

Anónimo

5 feb 2020

// Two arrays - First point that intersects int nArray1[] = {7, 5, 3, 9}; int nArray2[] = {3, 11, 4, 1}; int nLen1 = sizeof(nArray1) / sizeof(int); int nLen2 = sizeof(nArray2) / sizeof(int); for (int i = 0; i < nLen1; i++) { for (int j = 0; j < nLen2; j++) { if (nArray1[i] == nArray2[j]) { char szBuffer[8] = { 0 }; puts(_itoa(nArray1[i], szBuffer, 10)); } } }