pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Can we sort ? (using Java) #333

Closed raj2729 closed 3 years ago

raj2729 commented 3 years ago

Description

Implemented the required sorting in Java . Description of the problem : Given an array A with n integers return True if it is possible to sort the array in increasing order by swapping the i-th element A[i] with the (i+k)-th element A[i+k] else return False. The operations may be performed any number of times.

Reference Issue number #(305)

issue #305 is related to this PR, visit here

Type of change

Choosing one or more options from the following as per the nature of your Pull request. NOTE: Check boxes using [x]

Checklist: