---
title: "Discussion on \"アルゴ式: 839 SNS クエリ (2) (Swift)\" | Hashnode"
description: "Discussion on \"アルゴ式: 839 SNS クエリ (2) (Swift)\". SNS クエリ (2)\n\n今回はグラフっぽい？\nどこまでがバケットなのかちゃんとわかっていないのかも\n今回はSetでやったけれども、insertとかremoveの計算量の記載が公式ドキュメントにない\nremoveは平均するとO(1)になる説は見つけた\n多分、似た理論でinsertも一緒かな？\n実装を見て判断できるようになりたい\n\n提出\n\nAC"
url: "https://hashnode.com/posts/algo839-sns-query2-swift/62512e8392d73e7055c17915"
---

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

Discussion

# [アルゴ式: 839 SNS クエリ (2) (Swift)](https://continuous-tumbling.com/algo839-sns-query2-swift?utm_source=hashnode&utm_medium=feed)

SNS クエリ (2) 今回はグラフっぽい？ どこまでがバケットなのかちゃんとわかっていないのかも 今回はSetでやったけれども、insertとかremoveの計算量の記載が公式ドキュメントにない removeは平均するとO(1)になる説は見つけた 多分、似た理論でinsertも一緒かな？ 実装を見て判断できるようになりたい 提出 AC

Apr 9, 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.
