class Solution {
public:int countTestedDevices(vector<int>& batteryPercentages) {int time = 0;int ans = 0;for (auto &i:batteryPercentages){if (i - time > 0){time++;ans++;}} return ans;}
};
Postwoman作为Postman的女朋友,具有免费开源、轻量级、快速且美观等特性,是一款非常好用的API调试工具。能帮助程序员节省时间,提升工作效率。
Github地址:GitHub - hoppscotch/hoppscotch: 👽 Open source API devel…