C# 가장 긴 팰린드롬 - 투 포인터 / 프로그래머스 [Lv.3]
출처: 프로그래머스 코딩 테스트 연습 https://school.programmers.co.kr/learn/courses/30/lessons/12904 나의 풀이 public int solution(string s) { int answer = 1; for(int i = 1; i < s.Length - 1; ++i) { // 홀수 구성 체크 aba Check(s, 1, i, i, ref answer); // 짝수 구성 체크 abba if(s[i] == s[i + 1]) Check(s, 2, i, i + 1, ref answer); } return answer; } void Check(string s, int startCount, int left, int right, ref int answer) { int ..