---
title: "Discussion on \"C++ and dsa question 1.\" | Hashnode"
description: "Discussion on \"C++ and dsa question 1.\". Find Displacement : Given a long routes containing N,S,E,W directions, Find the shortest path to reach out the location.  \nsample input :SNNNEWE  \nSample output :  \nNNE  \nsolution : -------------  \n#include<iostream>  \nusing namespace std;   \nint mai..."
url: "https://hashnode.com/posts/c-and-dsa-question-1/63c57d56ef52f94c6e42395f"
---

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

Discussion

# [C++ and dsa question 1.](https://amankesharwani.hashnode.dev/c-and-dsa-question-1?utm_source=hashnode&utm_medium=feed)

Find Displacement : Given a long routes containing N,S,E,W directions, Find the shortest path to reach out the location. sample input :SNNNEWE Sample output : NNE solution : ------------- #include<iostream> using namespace std; int mai...

Jan 16, 2023 · 1 min read · amankesharwani.hashnode.dev  
Read the article

-   [#c-dsa](https://hashnode.com/tag/c-dsa)

## Written by

[AMAN KESHARWANI](https://hashnode.com/@Amank)

@Amank

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

Full stack web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
