---
title: "Discussion on \"Leetcode 2000 Reverse Prefix of Word\" | Hashnode"
description: "Discussion on \"Leetcode 2000 Reverse Prefix of Word\". Intuition\nFind position of ch (if any) then use two pointers to swap characters until string is reveresed from beginning to index of ch\nApproach\nStart by checking each character for ch. If we find it, that's where our right pointer will start. Our le..."
url: "https://hashnode.com/posts/leetcode-2000-reverse-prefix-of-word/66319543cd4ea888ff1f8202"
---

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

Discussion

# [Leetcode 2000 Reverse Prefix of Word](https://blog.kennycarneal.com/leetcode-2000-reverse-prefix-of-word?utm_source=hashnode&utm_medium=feed)

Intuition Find position of ch (if any) then use two pointers to swap characters until string is reveresed from beginning to index of ch Approach Start by checking each character for ch. If we find it, that's where our right pointer will start. Our le...

May 1, 2024 · 1 min read · blog.kennycarneal.com  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#two-pointers](https://hashnode.com/tag/two-pointers)
-   [#leetcodedaily](https://hashnode.com/tag/leetcodedaily)
-   [#leetcode-solution](https://hashnode.com/tag/leetcode-solution)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#datastructure](https://hashnode.com/tag/datastructure)

## Written by

[Kenny Carneal](https://hashnode.com/@Frawsty)

@Frawsty · Nashville, Tennessee

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

Christ follower, rollerblader, gamer, developer

I am a developer from Nashville, TN. I specialize in the .NET tech stack. I have created many projects in Blazor WASM, Xamarin, MAUI, etc.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
