Big O Notation with Absolute Value?

后端 未结 2 517
一生所求
一生所求 2021-01-13 23:41

I\'m going through some programming interview question books, and I\'ve seen reference to \"O(|A|)\" time complexity. I\'ve never seen this notation with the a

2条回答
  •  渐次进展
    2021-01-14 00:09

    In set theory notation |A| is the cardinality of set A, in other words the number of elements contained in set A.

    For Reference: http://www.mathsisfun.com/sets/symbols.html

提交回复
热议问题