Ad
  • Custom User Avatar

    triangle inequality theorem

  • Custom User Avatar

    good solution, is not necessary a complex data structure to solve this problem
    just an array of booleans
    great work guy!!

  • Custom User Avatar

    great solution, but you don't need getline
    cause, getline is more powerfull for different delimiters

    in this case a clear stream based solution is: while(stream >> buffer)

    it would be neat because you just need blank space delimiter

    and this works for streams with delimiters like: ' ', TAB and Return Line

    best regards