In this video we will take a look at another popular coding challenge for iOS interviews - contains element.
Requirements:
Write a function that takes an array and element and returns true if element appears in the array
Given array is sorted
Array could be empty
MORE VIDEOS
iOS Tutorials ► https://cutt.ly/RvqPLEj
iOS Interview ► https://cutt.ly/iOS-Interview
Data Structures ► https://cutt.ly/PLOhX8V
Design Patterns ► https://cutt.ly/2LOjwrY
Coding Challenges ► https://cutt.ly/Rwgu74Fa
LINKS & ATTRIBUTIONS
Source Code ► https://github.com/Andrew11US/AF-Swif...
TIMECODES
00:00 - Intro
00:16 - Requirements
00:31 - Simple version
00:58 - Algorithm explanation
03:15 - Optimized version
04:36 - Outro
#AFSwiftTutorials #codingchallenges #programmingskills