Unity Developer Interview Questions

819 unity developer interview questions shared by candidates

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

Interviewed at West Pier Studio

4.8
Jul 11, 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); } } } }

Viewing 81 - 90 interview questions

Glassdoor has 819 interview questions and reports from Unity developer interviews. Prepare for your interview. Get hired. Love your job.