https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int strStr(string haystack, string needle) {
int m = haystack.size(), n
https://leetcode.com/problems/reverse-words-in-a-string/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
string reverseWords(string s) {
int n = s.size();
for (int i = 0;
https://leetcode.com/problems/roman-to-integer/description/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int romanToInt(string s) {
int n = s.size();
int ans = 0;
https://leetcode.com/problems/trapping-rain-water/?envType=study-plan-v2&envId=top-interview-150
class Solution {
public:
int trap(vector<int>& height) {
int n = height.size(