Draft

Relative Shell navigation

Description:

Navigatie shell with relative path (cd)

In this kata you will write a function that takes two absolute paths

  • The Present working directory (String) and
  • The destination directory (String)
 The function has to return the one time navigation relative path
 that must be passed to the 'cd' command to navigate to the
 specified destination.

for example:

javascript: Relativity('/root/map/lagos','/root/map/dubai')

returns

"../../dubai"

Note: This kata requires the knowledge of shell navigation

and relative/absolute path specification

Stats:

CreatedApr 21, 2022
Warriors Trained1
Total Skips0
Total Code Submissions0
Total Times Completed1
JavaScript Completions1
Total Stars0
% of votes with a positive feedback rating0% of 0
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes0
Total "Not Satisfied" Votes0
Ad
Contributors
  • DevLarry Avatar
Ad