S w i f t - M a n

최근 포스트

[Swift] 3Sum

April 26 2022

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

[Swift] String to Integer (atoi)

April 24 2022

Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++’s atoi function).

[Swift] (String)Super Reduced String

April 17 2022

Reduce a string of lowercase characters in range ascii[‘a’..’z’]by doing a series of operations. In each operation, select a pair of adjacent letters that ma...

[Swift] Zigzag Conversion

April 15 2022

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for bet...

[Swift] Merge Intervals

April 15 2022

Given an array of intervals where intervals[i] = [start$_i$, end$_i$], merge all overlapping intervals, and return an array of the non-overlapping intervals ...

코드 리뷰 피라미드

April 13 2022

코드 리뷰는 스타일 논의에 많은 시간을 할애하는 경우가 많다. 정말 중요한 코드의 기능, 프로젝트를 더 장기적으로 더 좋은 프로젝트를 위해 코드리뷰를 하고 있으며 코드리뷰를 어디에 더 집중해야 하는가?를 정리한 코드리뷰 피라미드를 보게 되어 이를 소개한다.

[Swift] 순열

April 12 2022

Swift 순열은 직접 구현해야 한다. 알고리즘을 풀다 보면 자주 접하게 되는데 구현하려고 하면 매번 기억이 안 나는 마법에 빠져있다.