전체 글

기초가 가장 중요하다
문제 https://school.programmers.co.kr/learn/courses/30/lessons/147355 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 나의 풀이 class Solution { public int solution(String t, String p) { int answer = 0; int pLen = p.length(); for (int i = 0; i < t.length() - pLen + 1; i++) { if (Long.parseLong(t.substring(i, i + pLen))
문제 https://school.programmers.co.kr/learn/courses/30/lessons/150370 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 나의 풀이 import java.util.Arrays; import java.util.HashMap; class Solution { public int[] solution(String today, String[] terms, String[] privacies) { int priLen = privacies.length; int[] answer = new int[priLen]; HashMap ..
Delete Alert 사용하기 static alert ( title: string, message?: string, buttons?: AlertButton[], options?: AlertOptions, ); - title : 제목 - message : 메세지 - buttons : 버튼 설정하는데, array 형식으로 저장됨 - options : 다양한 옵션들이 있다. >> 자세한 내용은 공식문서 참조 https://reactnative.dev/docs/alert#alertbutton Alert · React Native Launches an alert dialog with the specified title and message. reactnative.dev Alert.alert("Delete To ..
Persist AsyncStorage 설치 expo install @react-native-async-storage/async-storage AsyncStorage 사용 import AsyncStorage from "@react-native-async-storage/async-storage"; ... const saveToDos = async (toSave) => { await AsyncStorage.setItem(STORAGE_KEY, JSON.stringify(toSave)); }; const loadToDos = async () => { const s = await AsyncStorage.getItem(STORAGE_KEY); s !== null ? setToDos(JSON.parse(s)) : n..
태기
개발 노트