https://school.programmers.co.kr/learn/courses/30/lessons/64061 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 나의 문제 풀이 private fun solution(board: Array, moves: IntArray): Int { var answer = 0 var boardList = board.toMutableList() val map = ArrayList() for (i in moves) { for (j in 0 until boardList.size ) { if (boardList[j][i - 1] ..
데이터 Dto 생성 . import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class MemberDto( val userId: String, val nickname: String, val profileImage: String ) : Parcelable { override fun toString(): String { return "userId:$userId, nickname:$nickname, profileImage:$profileImage" } } 데이터 Set val list = ArrayList() uiModel.members.forEach { list.add(MemberDto(it.userId,it...
xml. ViewPager2 와 Circleindicator3 를 추가해 주었다고 생각을 하겠습니다. MainActivity. initView() 메서드 생성. viewPager2 와 어댑터를 연결해 줍니다. 데이터는 있다고 생각을 하겠습니다. private val Adapter by lazy { Adapter(this) } private fun initView() = with(binding) { vp.adapter = Adapter // ViewPager 에 어댑터를 연결 Adapter.submitList(data) // 어댑터에 데이터를 submitList ciIndicator.setViewPager(vp) // circleIndicator3 ViewPager 셋 vp.registerOnPageCha..
TimeUnit 으로 시간을 받아왔을 때 현재 시간과 비교를 하거나 계산을 해야할 때 사용하면 좋은 방법! 현재시간 구하기. val nowDateTime = Calendar.getInstance().timeInMillis 비교 시간. 1677217428000 ( type 은 Long 데이터이다.) val differenceValue = nowDateTime - createDateTime val sdf = SimpleDateFormat("yyyy MM월 dd일 (EE) a h:mm") val date = sdf.format(differenceValue) 이런식으로 두 데이터를 빼 준다음 SimpeDateFormat 을 이용해서 원하는 형식으로 나타내주면 된다. 추가로 'x분 전', 'x시간 전', 'x일 ..
문제 설명 행렬의 덧셈은 행과 열의 크기가 같은 두 행렬의 같은 행, 같은 열의 값을 서로 더한 결과가 됩니다. 2개의 행렬 arr1과 arr2를 입력받아, 행렬 덧셈의 결과를 반환하는 함수, solution을 완성해주세요. 제한 조건 행렬 arr1, arr2의 행과 열의 길이는 500을 넘지 않습니다. 입출력 예 [[1,2],[2,3]] [[3,4],[5,6]] [[4,6],[7,9]] [[1],[2]] [[3],[4]] [[4],[6]] 이번문제는 2차 for문을 이용해서 문제를 풀어야겠다 라는 생각까진 했지만 뜻대로 되지않아 못풀었다. arr1.forEachIndexed { index, value -> arr2.forEachIndexed { index2, value2 -> } } 다른분의 풀이. A..
https://jgeun97.tistory.com/230 [Android] RecyclerView 마지막 layout 잘림 현상 RecyclerView 작업을 하다보면 맨 마지막 item이 잘리는 경우가 발생합니다. 1. ConstraintLayout 으로 상위 Layout이 구성되어있는 경우 RecyclerView를 Bottom을 연결하지 않고 height에 wrap_content를 입력하여 구현 jgeun97.tistory.com RecyclerView 작업을 하다보면 맨 마지막 item이 잘리는 경우가 발생합니다. 1. ConstraintLayout 으로 상위 Layout이 구성되어있는 경우 RecyclerView를 Bottom을 연결하지 않고 height에 wrap_content를 입력하여 구현하..
- Total
- Today
- Yesterday
- Hilt
- app bundle
- listener
- ScrollView
- Crop
- android
- direction
- https
- retrofit
- 알고리즘
- 코딩테스트
- bitmap
- ExoPlayer
- 재귀함수
- Token
- GitHub
- node.js
- flutter_new_badger
- ios
- Android Studio
- ec2
- error
- java
- FCM
- Flutter
- Firebase
- message
- API
- Kotlin
- Custom
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |