DP字符串1、单字符串/数组2、双字符串/数组
1、单字符串/数组模板一般dp[i]表示以i结尾的子序列,,最终结果为dp[n-1]。53. 最大子序和class Solution {public: int maxSubArray(vector<int>& nums) { int n = nums.size(); vector<int> dp(n, 0); for (int i=0; i<n; i++) {
java websocket传json,使用WebSocket将图像作为字节发送JSON
I want to send and receive image from cv2.Videocapture using WebSocket.It could get json, but it couldn't decoded.We need result that can be opened using cv2.imshow().Somebody help me...This is Client...