---
title: "Discussion on \"Swapping the position of the two words in a string represented by a singly linked list\" | Hashnode"
description: "Discussion on \"Swapping the position of the two words in a string represented by a singly linked list\". Recently I've been giving interviews as my last contract got completed. In one of the interviews, I was asked to write a data structure for a string using a singly linked list. The constraint was that the string would have exactly two words separated..."
url: "https://hashnode.com/posts/swapping-the-position-of-the-two-words-in-a-string-represented-by-a-singly-linked-list/650edd06c6500f8dfffd8bdf"
---

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

Discussion

# [Swapping the position of the two words in a string represented by a singly linked list](https://blog.srikanth.one/swapping-the-position-of-the-two-words-in-a-string-represented-by-a-singly-linked-list?utm_source=hashnode&utm_medium=feed)

Recently I've been giving interviews as my last contract got completed. In one of the interviews, I was asked to write a data structure for a string using a singly linked list. The constraint was that the string would have exactly two words separated...

Sep 23, 2023 · 6 min read · blog.srikanth.one  
Updated Sep 27, 2023  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#string](https://hashnode.com/tag/string)
-   [#linked-list-singly-linked-list](https://hashnode.com/tag/linked-list-singly-linked-list)

## Written by

[Srikanth Anantharam](https://hashnode.com/@sria91)

@sria91 · Bengaluru, Karnataka, India

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

Software Practitioner | Lifelong Learner

Software Practitioner | Lifelong Learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
