diff --git a/Leetcode-Easy/551. Student Attendance Record I/solution.cpp b/Leetcode-Easy/551. Student Attendance Record I/solution.cpp new file mode 100644 index 0000000..6ddd78c --- /dev/null +++ b/Leetcode-Easy/551. Student Attendance Record I/solution.cpp @@ -0,0 +1,20 @@ +class Solution { +public: + bool checkRecord(string s) { + int ca = 0; + string cl = "LLL"; + int cli = 0; + int find = s.find(cl); + for(int i=0; i