Author: 十七

leetcode117. 填充每个节点的下一个右侧节点指针 II

class Solution {public: void handle(Node* &last,Node* &p,Node* &nextStart){ if(last){ last->next=p; }

十七 Published on 2022-03-12
十七 Published on 2022-03-10

leetcode1514. 概率最大的路径

class Solution {public: double maxProbability(int n, vector<vector<int>>& edges, vector<double>& succProb, int start, int

十七 Published on 2022-03-10

leetcode1011. 在 D 天内送达包裹的能力

class Solution {public: int shipWithinDays(vector<int>& weights, int days) { int l=*max_element(weights.begin(),weights.end());

十七 Published on 2022-03-08
Previous Next