본문 바로가기

분류 전체보기240

Codewars - [6 kyu] Sum consecutives You are given a list/array which contains only integers (positive and negative). Your job is to sum only the numbers that are the same and consecutive. The result should be one list. Extra credit if you solve it in one line. You can assume there is never an empty list/array and there will always be an integer. Same meaning: 1 == 1 1 != -1 #Examples: [1,4,4,4,0,4,3,3,1] # should return [1,12,0,4,.. 2022. 1. 17.
IPO 최대어 'LG에너지 솔루션' 공모주 전략 LG에너지 솔루션은? 올해 기업공개(IPO)의 최대어로 꼽히는 LG에너지 솔루션에대한 투자자들의 관심이 굉장합니다. 요새는 많은 사람들이 '따상(공모가 두배로 시초가 형성 후 상한가 도달')을 노리고 공모주 청약을 하고 있는데요. 그럼 LG에너지 솔루션은 무슨 회사일까요? LG화학의 배터리 부문 자회사로 2020년 12월 LG화학에서 배터리 사업부문을 분할해서 설립한 기업입니다. CEO : 김종현 (2020년 12월 1일-) 창립 : 2020년 12월 본사 소재지 : 여의도 산업 분야 : 전지 종업원 수 : 7,524명 (2020.12) 작년 매출액 17조8000억원, 영업이익 1조원을 예상했다. 2025년까지 연평균 24%의 매출 성장도 전망 공모가는 현재 30만원으로 결정이 되었고 시가 총액이 70조.. 2022. 1. 14.
JETPACK COMPOSE: Column에 대해 알아보자 Column Coposable은 수직으로 배열된 형식으로 Composable collection을 표시하는 기능을 제공합니다. 여기서 Composable은 동시에 하나씩 차례로 표시됩니다. Column을 선언할 때 생성자(constructor)가 취할 수 있는네 가지 인수(argument)가 있습니다. @Composable inline fun Column( modifier: Modifier = Modifier, verticalArrangement: Arrangement.Vertical = Arrangement.Top, horizontalAlignment: Alignment.Horizontal = Alignment.Start, children: @Composable ColumnScope.() -> Unit.. 2022. 1. 13.
JETPACK COMPOSE: Box에 대해 알아보자 A Simple Box Layout Example 여기 MainActivity.kt에서 BoxExample0라는 composable function을 만들었습니다. 그리고 거기에 간단한 Box를 추가했습니다. 그런 다음 onCreate()의 setContect 블록에서 해당 함수를 호출했습니다. class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { BoxExample0() } } } @Composable fun BoxExample0() { Box( modifier = Modifier .background.. 2022. 1. 11.
300x250