gpt4 book ai didi

java - Preffix_Suffix 设置为 int 数组 [编程]

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:01:47 24 4
gpt4 key购买 nike

<分区>

我有一个整数数组 int[] A = {3, 5, 7, 3, 3, 5};

根据定义:

A prefix_suffix_set is a pair of indices (P, S) such that 0 ≤ P, S < N and such that:

  • every value that occurs in the sequence A[0], A[1], ..., A[P] also occurs in the sequence A[S], A[S + 1], ..., A[N − 1],
  • every value that occurs in the sequence A[S], A[S + 1], ..., A[N − 1] also occurs in the sequence A[0], A[1], ..., A[P].

我的问题是:前缀后缀集列表是哪个?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com