首页 > 其他分享 >day22打卡

day22打卡

时间:2024-10-12 21:33:11浏览次数:7  
标签:nums int day22 ++ vector 打卡 dp size

  1. 分发饼干

class Solution {
public:
int findContentChildren(vector& g, vector& s) {
sort(g.begin(), g.end());
sort(s.begin(), s.end());
int count = 0;
int i = 0;
int j = 0;
for(;i < g.size() && j < s.size()

标签:nums,int,day22,++,vector,打卡,dp,size
From: https://www.cnblogs.com/pwangikun/p/18461539

相关文章