Skip to content

Commit

Permalink
Create Tutorial.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Glorycs29 authored Aug 4, 2023
1 parent 765f4db commit 7554403
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1. Find inorder traversal and store it.

2. Similar to minimum swaps required to sort an array.

3. Create a vector and store values with there indexes.

4. Sort the vector and traverse it, if any value is not present at its correct index, swap it with correct index value and ans++.

0 comments on commit 7554403

Please sign in to comment.