728x90

2024/12 8

[SQL] 1378. Replace Employee ID With The Unique Identifier (Easy)

조인 사용하는 문제로 넘어왔다.https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/submissions/1493012049/?envType=study-plan-v2&envId=top-sql-50⬆️ 문제 전문은 위 링크에서 Table: Employees+---------------+---------+| Column Name | Type |+---------------+---------+| id | int || name | varchar |+---------------+---------+id is the primary key (column with unique value..

알고리즘 2024.12.31

[SQL] 1757. Recyclable and Low Fat Products (Easy)

너어어어무 알고리즘 및 sql 에 손 떼고 있어서 (물론 회사 업무의 sql은 했었음)쉬운거 부터 하나 가져왔어요https://leetcode.com/problems/recyclable-and-low-fat-products/?envType=study-plan-v2&envId=top-sql-50⬆️문제 전문 Table: Products+-------------+---------+| Column Name | Type |+-------------+---------+| product_id | int || low_fats | enum || recyclable | enum |+-------------+---------+product_id is the primary key (colum..

알고리즘 2024.12.26

[GO] 배열 선언하기

배열을 사용하면 더 다양한 요구사항을 구현할 수 있다.오늘은 배열을 통해서 랜덤하게 그리팅 문구를 뽑아낼수 있는 함수를 작성해 볼 것이다. 먼저 지난번에 작성했던 greetings.go를 열어 다음 패키지를 추가한다. import ( "errors" "fmt" //추가한 패키지 "math/rand" ) 해당 패키지는 랜덤하게 값을 뽑을 수 있도록 해주는 패키지이다. 다음으로 랜덤한 포맷을 리턴해주는 함수를 추가 해보겠다.// randomFormat returns one of a set of greeting messages. The returned// message is selected at random.func randomFormat() string { // A slice of messa..

728x90
반응형