---
title: "Discussion on \"アルゴ式: 879 文字列の種類数 (Swift)\" | Hashnode"
description: "Discussion on \"アルゴ式: 879 文字列の種類数 (Swift)\". 文字列の種類数\n\nユニークな文字列を数える問題\n前回から標準ライブラリを使って解く感じだったので、Setで\n解説だとSetを使う場合の計算量はO(N logN)と書いているいるけれども、SwiftだとSetのcountは計算量がO(1)だから全体ではO(logN)でいいのかな？\n\n提出\n\nAC"
url: "https://hashnode.com/posts/algo879-count-string-variation-swift/625e00b857bc361115202c4f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [アルゴ式: 879 文字列の種類数 (Swift)](https://continuous-tumbling.com/algo879-count-string-variation-swift?utm_source=hashnode&utm_medium=feed)

文字列の種類数 ユニークな文字列を数える問題 前回から標準ライブラリを使って解く感じだったので、Setで 解説だとSetを使う場合の計算量はO(N logN)と書いているいるけれども、SwiftだとSetのcountは計算量がO(1)だから全体ではO(logN)でいいのかな？ 提出 AC

Apr 19, 2022 · 1 min read · continuous-tumbling.com  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Takeshi Suzuki](https://hashnode.com/@tockrock)

@tockrock · Kanagawa, Japan

  
[View profile](https://hashnode.com/@tockrock)

looking for things to do next

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
