Unity Programmer Interview Questions

765 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
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 71 - 80 interview questions

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