当前位置:网站首页>LeetCode 2011. Variable Value After Action (Simple)
LeetCode 2011. Variable Value After Action (Simple)
2022-08-10 05:55:00 【Shengxin Research Ape】
python
class Solution:
def finalValueAfterOperations(self, operations: List[str]) -> int:
x = 0
for i in range(len(operations)):
if(operations[i][1]=='+'):
x +=1
else:
x -=1
return x
边栏推荐
- Count down the six weapons of the domestic interface collaboration platform!
- 2022李宏毅机器学习hw1--COVID-19 Cases Prediction
- Likou - Number of Provinces
- pytorch-11.卷积神经网络(高级篇)
- Convolutional Neural Network (CNN) for Clothing Image Classification
- pytorch-10.卷积神经网络(作业)
- ZigBee 网络设备相关内容
- 反射【笔记】
- 【笔记】集合框架体系 Collection
- Reflection 【Notes】
猜你喜欢
随机推荐
链表API设计
GUI_AWT
十年磨一剑!数字藏品行情软件,链读APP正式开放内测!
机器学习——聚类——商场客户聚类
开源免费WMS仓库管理系统【推荐】
pytorch-10.卷积神经网络
Collection工具类
卷积神经网络(CNN)实现mnist手写数字识别
一个基于.Net Core 开源的物联网基础平台
程序员副业赚钱之道,实现月收入增加20K
MySql constraints
IO流【】【】【】
深度学习TensorFlow入门环境配置
opencv
Linux数据库Oracle客户端安装,用于shell脚本用sqlplus连接数据库
pytorch-11.卷积神经网络(高级篇)
LeetCode 94. Inorder Traversal of Binary Trees (Simple)
Content related to ZigBee network devices
Privatisation build personal network backup NextCloud
opencv