博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
2021.3.16做题记录
阅读量:3973 次
发布时间:2019-05-24

本文共 587 字,大约阅读时间需要 1 分钟。

119.杨辉三角2

class Solution {
public: vector
getRow(int rowIndex) {
vector
res(rowIndex + 1) ; res[0] = 1 ; for ( int i = 1 ; i < rowIndex + 1 ; i ++ ) {
for ( int j = i ; j > 0 ; j -- ) {
res[j] = res[j] + res[j - 1] ; } } return res ; }};
  1. 范围求和 II
class Solution {
public: int maxCount(int m, int n, vector
>& ops) {
int len=ops.size(); if(ops.empty())return m*n; int a=ops[0][0],b=ops[0][1]; for(auto i=1;i

转载地址:http://fbmki.baihongyu.com/

你可能感兴趣的文章
Android SystemProperties设置/取得系统属性的用法总结
查看>>
Android 休眠 FLAG_KEEP_SCREEN_ON
查看>>
Android添加onKeyLongPress事件
查看>>
使用微信api将内容分享给好友,或者发送到朋友圈
查看>>
android开发中输入法的弹出和隐藏
查看>>
Android 如何在自定义界面上启用输入法 (How to enable inputmethod for the custom UI)
查看>>
Android MediaCodec小结
查看>>
YUV格式说明
查看>>
MediaCodec and Camera: colorspaces don't match
查看>>
android adb 读写模式 挂载文件系统
查看>>
onTouchEvent方法的使用
查看>>
Android详细解释键盘和鼠标事件
查看>>
如何成为强大的程序员?
查看>>
打包时sun.misc.ServiceConfigurationError
查看>>
摘自 管理自己[Managing Oneself]
查看>>
程序员开发大型应用程序的技巧
查看>>
远程团队管理的10条戒律
查看>>
在服务器上排除问题的头五分钟
查看>>
Diagnosing DFC Configuration Problems
查看>>
jboss java.lang.NoClassDefFoundError: Could not initialize class com.documentum.fc.client.DfClient
查看>>