HackerRank Java Sequence Equation

문제 풀기 : https://www.hackerrank.com/challenges/permutation-equation/problem Given a sequence of integers, where each element is distinct and satisfies . For each where , find any integer such that and print the value of on a new line. For example, assume the sequence . Each value of between and , the length of the sequence, is analyzed as follows: , so , so , so , so , so The values for are . Function Description Complete the permutationEquation function in the editor below. It should return an array of integers that represent the values of . permutationEquation has the following parameter(s): p : an array of integers Input Format The first line contains an integer , the number of elements in the seq...