[프로그래머스][2020 카카오 인턴십] 수식 최대화


[프로그래머스][2020 카카오 인턴십] 수식 최대화

https://programmers.co.kr/learn/courses/30/lessons/67257?language=cpp 자료구조시간에 배웠던 infix,prefix,postfix 문제와 비슷한 개념의 문제이다. +-* 세 개 중 어떤게 나왔는지 확인하기 위해 set operator는 늘 operand사이에 나오고, 결국 계산을 끝까지 하면 최종 값만 남으므로 operator를 기준으로 찾아서 결과값을 구한다. substr(i,cnt) : index i부터 cnt개를 substring화 vector<string> operand_vec(operand_set.begin(),operand_set.end()) : set의 내용물들을 vector로 복사 next_permutation(operand_vec.begin(),operand_vec.end()) : next_permutation은 순열을 만들어주면서, 중복인 경우를 제외하고 만들어..........



원문링크 : [프로그래머스][2020 카카오 인턴십] 수식 최대화