which while loop do u mean?
Posts made by osDaneilLee
RE: Counting_sort,STL,vector, 4ms C++ with comments
bravo! gooooooooooooood answer
RE: For test case [3,2,6,5,0,3] I got a better result 6 (buy, buy, sell, sell, nothing, nothing) instead of expected 4.
Even you could buy or sell or do nothing each time,the result should be 7(nothing , buy, sell, nothing, buy , sell)