1달이라는 기간동안 카카오 챗봇을 이용한 서비스를 구현해보고자 한다. 작은 한챕터가 마무리 될 때마다 블로깅할 예정이다. [주제와 기능 설정] 학교에 관련하여 여러 정보들을 알려줄 수 있는 봇이면 좋겠다는 생각에 이런 저런 기능을 생각해보았다. 식단 버스 각종 공지사항의 실시간 업데이트 여부 (업데이트 시 카톡 알림) 시간표 등록 및 수업알림 (부가사항) [검토] 선배님께 기능별 우선순위를 두고 하나씩 구현해보는것을 목표로 하는것이 좋겠다는 피드백을 받았다. 우선 생각해둔 기능 3가지 { 식단, 버스, 공지사항 안내 }가 있는데 (시간표를 제외하고) 식단 → 버스 → 공지사항 안내 순서로 우선순위를 두기로 했다. 공지사항이 올라왔을 경우 사용자에게 선톡을 보내고싶었는데 사용자의 request 방식이 아닌..
다음과 같은 에러가 발생했다. org.apache.el.parser.ParseException: Encountered " "}" "} "" at line 1, column 3. Was expecting one of: ... ... ... "true" ... "false" ... "null" ... "(" ... "!" ... "not" ... "empty" ... "-" ... ... Expression Language를 잘못 사용했을 때 발생하는 에러였다.
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that was added in t. Example: Input: s = "abcd" t = "abcde" Output: e Explanation: 'e' is the letter that was added. 코드 class Solution { public: char findTheDifference(string s, string t) { long int arr1[27] = {0,..
Given a positive integer n and you can do operations as follow: If n is even, replace n with n/2. If n is odd, you can replace n with either n + 1 or n - 1. What is the minimum number of replacements needed for n to become 1? Example 1: Input: 8 Output: 3 Explanation: 8 -> 4 -> 2 -> 1 Example 2: Input: 7 Output: 4 Explanation: 7 -> 8 -> 4 -> 2 -> 1 or 7 -> 6 -> 3 -> 2 -> 1 코드 class Solution { pu..
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad. Suppose you have n versions [1, 2, ..., n] and you want to find out the first bad one, which causes all the following ones to be..
7. Reverse Integer Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. For the purpose of this problem, assume that your function returns 0 when the ..