How to Implement a Website with MVC Architecture using PHP

The MVC Architecture, benefiting the developers maintaining and improving the web considerably, has becoming the trends and mature technique with numerous frameworks. The following slides is the simply intro and analysis about MVC using PHP (Laravel),  Hoping helps!

LeetCode - 344. Reverse String

Category: Algorithm
Difficulty: Easy
Tags: Two Pointers, String
Discription: https://leetcode.com/problems/plus-one/#/description
極致簡單的字串處理,
輸入「hello」,輸出「olleh」。
class Solution {
public:
    string reverseString(string s) {
        string result="";
     
        for(int i=s.length()-1; i>=0; i--)
            result += s[i];
     
        return result;
    }
};

留言