Domande poste durante i colloqui per Unity Programmer

36 Domande di colloqui condivise dai candidati | unity programmer

What is wrong with the following code and what would you do to fix or improve the code if applicable? private void RemoveDuplicates( List<int> zMyList ) { int listCount = zMyList.Count; for( int i = 0 ; i < listCount; i++ ) { for( int j = i + 1; j < listCount ; j++ ) { if( zMyList[i] == zMyList[j] ) { zMyList.RemoveAt(j); } } } }
avatar

Unity Programmer

Ha sostenuto un colloquio presso West Pier Studio

4.8
11 lug 2018

What is wrong with the following code and what would you do to fix or improve the code if applicable? private void RemoveDuplicates( List<int> zMyList ) { int listCount = zMyList.Count; for( int i = 0 ; i < listCount; i++ ) { for( int j = i + 1; j < listCount ; j++ ) { if( zMyList[i] == zMyList[j] ) { zMyList.RemoveAt(j); } } } }

Stai visualizzando 1 - 10 domande di colloquio

Su Glassdoor sono presenti 36 domande e rapporti relativi a colloqui per Unity programmer. Preparati al tuo prossimo colloquio. Trova il lavoro perfetto per te!