Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 파이썬 기초
- 스프링부트 미니프로젝트
- spring jpa 사이드프로젝트
- jpa 게시판
- 유니티Material
- springboot 게시판
- 스프링부트 블로그
- spring jpa 게시판
- 스프링부트 회원가입
- springboot 게시판 프로젝트
- 스프링부트 게시판만들기
- 타입스크립트 기초문법
- 괄호 회전하기 파이썬
- 프로그래머스 괄호 회전하기 python
- 유니티
- 타입스크립트 기본문법
- 스프링부트 블로그만들기
- 타입스크립트 기초
- 스프링부트 update
- JS기초
- 파이썬 괄호 회전하기
- 스프링게시판프로젝트
- 유니티기초
- springboot 게시판만들기
- 유니티Cube
- typescript 기초문법
- springboot 사이드프로젝트
- springboot 미니프로젝트
- python 괄호 회전하기
- 스프링 게시판 만들기
Archives
- Today
- Total
목록리트코드 Max Consecutive Ones python (1)
Digking's cave

class Solution: def findMaxConsecutiveOnes(self, nums: List[int]) -> int: tempnum = 0 temlist=[] for i in nums: if(i == 1): tempnum += 1 else: temlist.append(tempnum) tempnum = 0 temlist.append(tempnum) return max(temlist) 문제 풀이
코딩테스트/알고리즘
2022. 7. 27. 14:38