---
title: "Discussion on \"Longest Common Prefix\" | Hashnode"
description: "Discussion on \"Longest Common Prefix\". Hello friends today I have solved the problem of longest common prefix on the leetcode which is based on the topic strings. In this problem as give below we have to solve the longest common prefix between strings that are present in arrays so first w..."
url: "https://hashnode.com/posts/longest-common-prefix/64772c121ad6875e28922221"
---

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

Discussion

# [Longest Common Prefix](https://djnikam.hashnode.dev/longest-common-prefix?utm_source=hashnode&utm_medium=feed)

Hello friends today I have solved the problem of longest common prefix on the leetcode which is based on the topic strings. In this problem as give below we have to solve the longest common prefix between strings that are present in arrays so first w...

May 31, 2023 · 2 min read · djnikam.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#strings](https://hashnode.com/tag/strings)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#coding](https://hashnode.com/tag/coding)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)

## Written by

[DHANRAJ NIKAM](https://hashnode.com/@djnikam)

@djnikam · India

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

code with love

Hello everyone, I'm Dhanraj, a CSIT Btech student currently pursuing my degree at Rajarambapu Institute of Technology. I'm a passionate web developer and Java programmer, with a keen interest in data structures and algorithms. Programming has always been my passion since my school days, and I have been constantly exploring the world of computer science. My fascination with web development began when I discovered the power of the internet, and since then, I have been honing my skills to create beautiful, functional websites. I believe that perseverance and hard work are the keys to success in any field, and programming is no exception. I enjoy the challenge of solving complex problems and take pride in delivering high-quality code that meets the requirements of my clients. Apart from programming, I also have a keen interest in playing chess and expanding my knowledge of the stock market. I strongly believe that a well-rounded personality is crucial for success in life, and I always strive to balance my academic pursuits with my extracurricular activities. I'm excited to share my experiences and knowledge with you through my blog. Whether you're a beginner or an experienced programmer, I hope that my articles will inspire you to push your limits and reach new heights in your programming journey.

## Responses 1

Markdown supported · ⌘↵ to post

[Bryan King Pecho](https://hashnode.com/@bkpecho)

[May 31, 2023](https://hashnode.com/posts/longest-common-prefix/64772c121ad6875e28922221/comment/64772fc5445c91ce375da3ec)

Your solution demonstrates a good understanding of string manipulation and the use of built-in methods. Keep up the good work! 🙌

[DHANRAJ NIKAM](https://hashnode.com/@djnikam)

[Aug 14, 2023](https://hashnode.com/posts/longest-common-prefix/64772c121ad6875e28922221/comment/64772fc5445c91ce375da3ec#reply-64da649a6203e95780d64520)

Thank you for your kind words. I’m glad you liked my solution.😊
