Skip to content

Commit c043d7a

Browse files
committed
Solution #14 -Nishitha - 05/08/2025 - commit #14
1 parent a9b1e0b commit c043d7a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Problem: Longest Common Prefix
2+
## Language: C++
3+
4+
---
5+
6+
1. Start with the first string as the prefix.
7+
2. For each string in the array:
8+
- Reduce the prefix by comparing it with the current string.
9+
- Stop early if prefix becomes empty.
10+
11+
---
12+
13+
14+

Problems/#14 - Longest Common Prefix - Easy/solution.cpp

Whitespace-only changes.

0 commit comments

Comments
 (0)