---
title: "Discussion on \"Permutations\" | Hashnode"
description: "Discussion on \"Permutations\". A permutation of integers 1,2,…,n is called beautiful if there are no adjacent elements whose difference is 111.\nGiven nnn, construct a beautiful permutation if such a permutation exists.\nInput\nThe only input line contains an integer on n.\nOutput\nPri..."
url: "https://hashnode.com/posts/permutations/65b777e0617be5cc4db58e8b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Permutations](https://ramandeepsingh.hashnode.dev/permutations?utm_source=hashnode&utm_medium=feed)

A permutation of integers 1,2,…,n is called beautiful if there are no adjacent elements whose difference is 111. Given nnn, construct a beautiful permutation if such a permutation exists. Input The only input line contains an integer on n. Output Pri...

Jan 29, 2024 · 2 min read · ramandeepsingh.hashnode.dev  
Read the article

-   [#developer](https://hashnode.com/tag/developer)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Ramandeep Singh](https://hashnode.com/@ramandeepSingh)

@ramandeepSingh · Rajasthan, India

  
[View profile](https://hashnode.com/@ramandeepSingh)

Enlivening the Dreams :D

A programming enthusiast trying to give share my knowledge with the community :D

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
