본문 바로가기
728x90

전체 글163

[한빛 미디어] 이것이 안드로이드다 with 코틀린(개정 3판) "한빛미디어 활동을 위해서 책을 제공받아 작성된 서평입니다." 저는 안드로이드 애플리케이션을 자바로만 개발을 해봤습니다. 그러나 요즘 기업 기술 스택을 보니 코틀린을 많이 선호하는 것 같았습니다. 그래서 코틀린이 무슨 언어이고, 안드로이드 앱을 어떻게 개발하는지 궁금해져 이 책을 읽게 되었습니다. "이것이 안드로이드다 with 코틀린"은 1판, 2판, 3판으로 이루어져 있습니다. 개정 몇 판을 보면 좋을지 고민이 되어 목차를 확인해봤는데, 1판 2판 3판의 내용이 이어져 있는 것이 아니라 다 안드로이드의 구조부터 설명이 되어 있었습니다. 저는 3판의 실습 내용이 더 맘에 들어 3판으로 결정하게 되었습니다! 다른 분들도 1판 2판 3판의 실습 예제를 보고 더 맘에 드는 책을 잘 고르셨으면 좋겠어요ㅎㅎㅎ 저.. 2022. 2. 23.
leetcode 171) Excel Sheet Column Number LV. Easy 😎 https://leetcode.com/problems/excel-sheet-column-number/ Excel Sheet Column Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given a string columnTitle that represents the column title as appear in an Excel sheet, return its corresponding column number. For ex.. 2022. 2. 22.
leetcode 169) Majority Element LV. Easy 😎 https://leetcode.com/problems/majority-element/ Majority Element - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assume that.. 2022. 2. 21.
leetcode 1288) Remove Covered Intervals LV. Medium 🧐 https://leetcode.com/problems/remove-covered-intervals/ Remove Covered Intervals - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array intervals where intervals[i] = [li, ri] represent the interval [li, ri), remove all intervals that are covered by anothe.. 2022. 2. 20.
leetcode 1675) Minimize Deviation in Array LV. Hard 🥵 https://leetcode.com/problems/minimize-deviation-in-array/ Minimize Deviation in Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given an array nums of n positive integers. You can perform two types of operations on any element of the array any number .. 2022. 2. 19.
leetcode 402) Remove K Digits LV. Medium 🧐 https://leetcode.com/problems/remove-k-digits/ Remove K Digits - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given string num representing a non-negative integer num, and an integer k, return the smallest possible integer after removing k digits from num. Exampl.. 2022. 2. 18.
아두이노 전역 변수 설정하기 아두이노 프로젝트를 진행하는데 전역 변수로 생성한 변수가 전역 변수가 아니다.. .hpp 파일에서 선언을 하고 .ino 파일에서 초기화를 했는데 .cpp 다른 파일에서 초기화가 안 되어있다.. 도대체 이게 무슨 일인가 내가 전역 변수 선언하는 법을 잘 못 알고 있나 싶어 하루 종일 구글링을 하고 코드에 여러 테스트를 하고 알아낸 결과 아두이노는 보통의 cpp와 전역 변수 설정하는 법이 달랐다..! cpp에서 전역 변수를 설정할 때 2가지 방법이 있다. 해당 파일 안에서만 전역 변수로 설정할 때는 static, 모든 파일 안에서 전역 변수로 쓰고 싶을 때는 extern으로 선언해주면 된다. 아두이노에서 전역 변수를 setup과 loop 밖에 선언된 변수를 전역 변수라 한다. 물론 이 변수는 지역변수를 선언.. 2022. 2. 18.
leetcode 39) Combination Sum LV. Medium 🧐 https://leetcode.com/problems/combination-sum/ Combination Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbe.. 2022. 2. 17.
leetcode 24) Swap Nodes in Pairs LV. Medium 🧐 https://leetcode.com/problems/swap-nodes-in-pairs/ Swap Nodes in Pairs - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given a linked list, swap every two adjacent nodes and return its head. You must solve the problem without modifying the values in the list's nod.. 2022. 2. 16.
728x90