Student Attendance Record I
smart if-else !
s.indexOf("A") != s.lastIndexOf("A") is so smart
Thanks for sharing! Mine may be a little slower than you, just for your reference.
@StefanPochmann this python method, a little slow
No one has replied
Simple and clear :)
Disabled Categories are greyed out
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.