전체 글 74

99클럽 코테 스터디 33일차 TIL Number of Good Leaf Nodes Pairs

# 오늘의 학습 키워드 깊이/너비 우선 탐색(DFS/BFS) # 오늘의 문제 https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/description/You are given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the shortest path between them is less than or equal to distance.Return the number of good leaf node pairs in the tree. Example ..

[Flutter] InheritedWidget이란?

1. 왜 필요하나?- 불필요한 데이터 전달을 방지하고 트리의 root에 접근해 바로 데이터를 가져오기 위해서!StatefulWidget과 StatelessWidget을 통해 화면을 구성하게 되면 데이터의 변경이 필요한 위젯이 트리구조의 끝부분에 있을 경우 트리의 Top에서 Bottom가지 불필요한 데이터 전달이 일어난다.   데이터의 변경이 필요한 위젯이 트리의 Top에 바로 접근하여 데이터를 가져올수 있게 하는 widget이 InheritedWidget이다. 상태관리 라이브러리의 기본이 되는 Provider의 핵심이다.    2. InheritedWidget 예시class FrogColor extends InheritedWidget { const FrogColor({ super.key, r..

[Flutter] Material 디자인과 Cupertino 디자인의 차이

1. Material Design ? 구글에서 발표한 UI 가이드라인으로 안드로이드 UI컴포넌트를 제공한다.  2. Cupertino Design ?구글에서 발표한 UI 가이드라인으로 iOS UI컴포넌트를 제공한다.  3. 어떤걸 사용할까 Android Studio에서 Flutter프로젝트를 생성하면 기본적으로 Material Design으로 적용되어 있으나 원하는 UI에 따라 Design을 선택하면 된다.

99클럽 코테 스터디 32일차 TIL Bad Grass

# 오늘의 학습 키워드 깊이/너비 우선 탐색(DFS/BFS) # 오늘의 문제 https://www.acmicpc.net/problem/6080Bessie was munching on tender shoots of grass and, as cows do, contemplating the state of the universe. She noticed that she only enjoys the grass on the wide expanses of pasture whose elevation is at the base level of the farm. Grass from elevations just 1 meter higher is tougher and not so appetizing. The bad grass ..

99클럽 코테 스터디 31일차 TIL Clear Cold Water

# 오늘의 학습 키워드 깊이/너비 우선 탐색(DFS/BFS) # 오늘의 문제 https://www.acmicpc.net/problem/6188문제The steamy, sweltering summers of Wisconsin's dairy district stimulate the cows to slake their thirst. Farmer John pipes clear cold water into a set of N (3 She has mapped the entire set of branching pipes and noted that they form a tree with its root at the farm and furthermore that every branch point has exactly t..

카테고리 없음 2024.08.21

99클럽 코테 스터디 30일차 TIL Arranging Coins

# 오늘의 학습 키워드 이분탐색 # 오늘의 문제 https://leetcode.com/problems/arranging-coins/description/You have n coins and you want to build a staircase with these coins. The staircase consists of k rows where the ith row has exactly i coins. The last row of the staircase may be incomplete.Given the integer n, return the number of complete rows of the staircase you will build. Example 1: Input: n = 5Output: 2Exp..

99클럽 코테 스터디 29일차 TIL Missing Number

# 오늘의 학습 키워드 이분탐색 # 오늘의 문제 https://leetcode.com/problems/missing-number/description/ Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. Example 1:Input: nums = [3,0,1]Output: 2Explanation: n = 3 since there are 3 numbers, so all numbers are in the range [0,3]. 2 is the missing number in the range since it doe..

[Flutter] firebase 연동 시 Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. 오류

# 발생 상황Firebase에 연동하기위해 dart pub global deactivate flutterfire_cli로 flutterfire를 설치할때 오류 발생  # 발생 원인경로를 불러오지 못해 발생  # 해결 방안1. .zshrc .bashrc, .bash_profile 등 환경설정 파일에  해당 경로를 추가한다$ export PATH="$PATH":"$HOME/.pub-cache/bin 2. .zshrc를 기준으로 설명하자면 경로 추가 후 source로 파일을 다시 읽어들여야한다. $ source ~/.zshrc 이렇게 해도 경로를 인식못하면 터미널 재시작해주기!

오늘의 오류 2024.08.19

[Flutter] Firebase 연동하기

1. Firebase console에 접속해서 Flutter 로고 클릭-flutter 3.0버전부터 플랫폼 각각 등록할 필요없이 한번에 등록할수 있게 됐다  2. Firebase cli 설치 $ npm install -g firebase-tools  3. 터미널에서 구글계정으로 Firebase 로그인$ firebase login  4. flutter firebase cli 추가$ dart pub global activate flutterfire_cli  5. flutter firebase cli로 firebase에 연동되도록 프로젝트 설정- 플랫폼별 앱이 Firebase에 자동등록되고 lib/firebase_options.dart파일이 flutter프로젝트에 추가됨$ flutterfire configur..

99클럽 코테 스터디 28일차 TIL 프로세스

# 오늘의 학습 키워드 스택/큐 # 오늘의 문제 https://school.programmers.co.kr/learn/courses/30/lessons/42587문제 설명운영체제의 역할 중 하나는 컴퓨터 시스템의 자원을 효율적으로 관리하는 것입니다. 이 문제에서는 운영체제가 다음 규칙에 따라 프로세스를 관리할 경우 특정 프로세스가 몇 번째로 실행되는지 알아내면 됩니다.1. 실행 대기 큐(Queue)에서 대기중인 프로세스 하나를 꺼냅니다.2. 큐에 대기중인 프로세스 중 우선순위가 더 높은 프로세스가 있다면 방금 꺼낸 프로세스를 다시 큐에 넣습니다.3. 만약 그런 프로세스가 없다면 방금 꺼낸 프로세스를 실행합니다.  3.1 한 번 실행한 프로세스는 다시 큐에 넣지 않고 그대로 종료됩니다.예를 들어 프로세스 ..

카테고리 없음 2024.08.18
반응형