mirror of
https://github.com/Dentrax/Data-Structures-with-Go
synced 2024-11-10 07:10:34 +00:00
update readme
This commit is contained in:
parent
6d3c3b28a7
commit
4e829c4752
@ -10,15 +10,19 @@ Examples
|
|||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
> Input: arr[] = {1, 2}, x = 1, y = 2
|
> Input: arr[] = {1, 2}, x = 1, y = 2
|
||||||
|
|
||||||
> Output: Minimum distance between 1 and 2 is 1.
|
> Output: Minimum distance between 1 and 2 is 1.
|
||||||
|
|
||||||
> Input: arr[] = {3, 4, 5}, x = 3, y = 5
|
> Input: arr[] = {3, 4, 5}, x = 3, y = 5
|
||||||
|
|
||||||
> Output: Minimum distance between 3 and 5 is 2.
|
> Output: Minimum distance between 3 and 5 is 2.
|
||||||
|
|
||||||
> Input: arr[] = {3, 5, 4, 2, 6, 5, 6, 6, 5, 4, 8, 3}, x = 3, y = 6
|
> Input: arr[] = {3, 5, 4, 2, 6, 5, 6, 6, 5, 4, 8, 3}, x = 3, y = 6
|
||||||
|
|
||||||
> Output: Minimum distance between 3 and 6 is 4.
|
> Output: Minimum distance between 3 and 6 is 4.
|
||||||
|
|
||||||
> Input: arr[] = {2, 5, 3, 5, 4, 4, 2, 3}, x = 3, y = 2
|
> Input: arr[] = {2, 5, 3, 5, 4, 4, 2, 3}, x = 3, y = 2
|
||||||
|
|
||||||
> Output: Minimum distance between 3 and 2 is 1.
|
> Output: Minimum distance between 3 and 2 is 1.
|
||||||
|
|
||||||
**METHOD 1 (Simple)**
|
**METHOD 1 (Simple)**
|
||||||
|
Loading…
Reference in New Issue
Block a user