๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
728x90
๋ฐ˜์‘ํ˜•

easy7

[Swift&JS] HackerRank Staircase Problem Staircase | HackerRank Print a right-aligned staircase with n steps. www.hackerrank.com Source Code Swift import Foundation let n:Int = Int(readLine()!)! var start = Array(repeating:" ", count: n) func staircase(n: Int) { for i in 1...n { start[n-i] = "#" print(start.joined()) } } staircase(n: n) JS 'use strict'; process.stdin.resume(); process.stdin.setEncoding('utf-8'); let inputString.. 2022. 2. 6.
[Swift] HackerRank Plus Minus Problem Plus Minus | HackerRank Calculate the fraction of positive, negative and zero values in an array. www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 2. 2.
[Swift] HackerRank Diagonal Difference Problem Diagonal Difference | HackerRank Calculate the absolute difference of sums across the two diagonals of a square matrix. www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 2. 1.
[Swift] HackerRank A Very Big Sum Problem A Very Big Sum | HackerRank Calculate the sum of the values in an array that might exceed the range of int values. www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 1. 31.
[Swift] HackerRank Compare the Triplets Problem Compare the Triplets | HackerRank Compare the elements in two triplets. www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 1. 31.
[Swift] HackerRank Simple Array Sum Problem Simple Array Sum | HackerRank Calculate the sum of integers in an array. www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 1. 31.
[Swift] HackerRank Solve Me First Problem Solve Me First | HackerRank This is an easy challenge to help you start coding in your favorite languages! www.hackerrank.com Source Code HTML ์‚ฝ์ž… ๋ฏธ๋ฆฌ๋ณด๊ธฐํ•  ์ˆ˜ ์—†๋Š” ์†Œ์Šค 2022. 1. 31.
728x90
๋ฐ˜์‘ํ˜•