Skip to content

Commit bbd3cc4

Browse files
committed
Runtime: 188 ms (Top 5.26%) | Memory: 22.9 MB (Top 68.97%)
1 parent 2a8d957 commit bbd3cc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/F/Find First Palindromic String in the Array/Find First Palindromic String in the Array.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 188 ms (Top 5.26%) | Memory: 22.9 MB (Top 68.97%)
12
class Solution {
23
bool isPalindrome(string str){
34
int i=0 ;
@@ -12,11 +13,11 @@ class Solution {
1213
}
1314
public:
1415
string firstPalindrome(vector<string>& words) {
15-
16+
1617
for(int i=0 ; i<words.size() ; i++){
1718
if(isPalindrome(words[i]))
1819
return words[i];
1920
}
2021
return "";
2122
}
22-
};
23+
};

0 commit comments

Comments
 (0)