AlgoGenesis / C

AlgoGenesis is a centralized open-source platform dedicated to providing optimized and well-documented algorithm implementations in C. Perfect for both beginners and advanced users, this repository serves as a comprehensive learning resource for solving algorithmic challenges.
MIT License
89 stars 306 forks source link

Added: Longest Common Prefix Program #1847

Closed rajdeepchakraborty-rc closed 1 week ago

rajdeepchakraborty-rc commented 1 week ago

Issue Resolved

Algorithm Added

Longest Common Prefix

Description

This program finds the Longest Common Prefix (LCP) among an array of strings. The LCP is the longest sequence of characters shared at the beginning of all strings in the array. The program employs an efficient algorithm to identify the common prefix by comparing the strings character by character.

Example:
Enter the number of strings: 5
Enter the strings:
String 1: prawn
String 2: prajakta
String 3: prince
String 4: probably
String 5: project

Output:
The longest common prefix is: pr
rajdeepchakraborty-rc commented 1 week ago

@pankaj-bind Please review the PR at your convinience

rajdeepchakraborty-rc commented 1 week ago

Also, after the recent PR, you merged:

The Contributor has again broken the codebase cloning due to improper directory path naming: image

The space in the Folder name is failing the cloning process:

Screenshot 2024-11-10 021215

rajdeepchakraborty-rc commented 1 week ago

@pankaj-bind please do assign the PR to me. I had opened an unmerged PR request as instructed by the Core team.