Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 280 Bytes

explanation_4.md

File metadata and controls

10 lines (8 loc) · 280 Bytes

""" Explanation of; Project: Problems vs Algorithms Problem 4: Dutch National Flag Problem """

#I iterated the list for one time and I seperated 0s, 1s and 2s in difrrerent lists. Then I collected all lists in one list

#So both runtime complexity and space complexitys are O(n)