Find Permutation, is a LeetCode problem. In this post we will see how we can solve this challenge in Python

Problem Description

By now, you are given a secret signature consisting of character 'D' and 'I'. 'D' represents a decreasing relationship between two numbers, 'I' represents an increasing relationship between two numbers. And our secret signature was constructed by a special integer array, which contains uniquely all the different number from 1 to n (n is the length of the secret signature plus 1). For example, the ....

You can find the full details of the problem Find Permutation at LeetCode

Solution: Please check the snippet for the solution.

This solution originally posted at: Github by @kamyu104