Find the Pivot Integer - LeetCode Can you solve this real interview question? Find the Pivot Integer - Given a positive integer n, find the pivot integer x such that: * The sum of all elements between 1 and x inclusively equals the sum of all elements between x and n inclusively. Return th leetcode.com 문제 설명 n이 입력으로 주어질 때, 1 ~ x의 합과 x ~ n의 합이 같아지는 x를 구하는 문제. 조건을 만족하는 x가 없다면 -1을 리턴한다. 문제 풀이 (1) 사..