Unity Programmer Interview Questions

36 unity programmer 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
11 Jul 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 1 - 10 interview questions

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