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 |
Tags
- 타입스크립트 기초문법
- 스프링부트 블로그만들기
- 스프링부트 update
- springboot 사이드프로젝트
- springboot 게시판만들기
- python 괄호 회전하기
- springboot 게시판
- springboot 게시판 프로젝트
- 유니티Cube
- typescript 기초문법
- 타입스크립트 기본문법
- JS기초
- spring jpa 사이드프로젝트
- 프로그래머스 괄호 회전하기 python
- 스프링 게시판 만들기
- 파이썬 괄호 회전하기
- springboot 미니프로젝트
- 스프링부트 미니프로젝트
- 유니티
- 유니티기초
- 타입스크립트 기초
- 스프링부트 게시판만들기
- 파이썬 기초
- 유니티Material
- 스프링부트 회원가입
- 스프링부트 블로그
- jpa 게시판
- spring jpa 게시판
- 스프링게시판프로젝트
- 괄호 회전하기 파이썬
Archives
- Today
- Total
목록leetcode Max Consecutive Ones (1)
Digking's cave
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/J5cVk/btrIiLtwk9A/0iVK9K93scj7cMhAKjNne0/img.png)
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