817. Linked List Components - Medium

本文介绍了一种算法,用于计算链表中特定值组成的连续组件数量。通过将给定值集合转换为哈希集并遍历链表,判断每个节点是否构成独立组件,实现了高效的时间复杂度O(n)和空间复杂度O(k),其中k为给定值集合的长度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

We are given head, the head node of a linked list containing unique integer values.

We are also given the list G, a subset of the values in the linked list.

Return the number of connected components in G, where two values are connected if they appear consecutively in the linked list.

Example 1:

Input: 
head: 0->1->2->3
G = [0, 1, 3]
Output: 2
Explanation: 
0 and 1 are connected, so [0, 1] and [3] are the two connected components.

Example 2:

Input: 
head: 0->1->2->3->4
G = [0, 3, 1, 4]
Output: 2
Explanation: 
0 and 1 are connected, 3 and 4 are connected, so [0, 1] and [3, 4] are the two connected components.

 

先把G中的元素加入set

遍历linked list,如果当前指针指向节点的值在set中存在,并且下一个为空/下一个不存在,说明是一个独立的component,component数+1;

如果下一个不为空并且下一个值在set中存在,说明这仍然是同一个component,指针指向下一个元素

time: O(n), space: O(k)  -- k: length of G

/**
 * Definition for singly-linked list.
 * public class ListNode {
 *     int val;
 *     ListNode next;
 *     ListNode(int x) { val = x; }
 * }
 */
class Solution {
    public int numComponents(ListNode head, int[] G) {
        Set<Integer> set = new HashSet<>();
        for(int g : G) {
            set.add(g);
        }
        
        int res = 0;
        while(head != null) {
            if(set.contains(head.val) && (head.next == null || !set.contains(head.next.val))) {
                res++;
            }
            head = head.next;
        }
        return res;
    }
}

 

转载于:https://www.cnblogs.com/fatttcat/p/10185134.html

将下面的JSON转成C#实体类:{ "totalCount": 224, "items": [ { "componentName": "Activiti - BPMN Converter", "componentVersionName": "7.0.0.SR1", "component": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2", "componentVersion": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478", "totalFileMatchCount": 1, "matchConfidenceStatus": "OK", "matchAmbiguity": { "kbArtifactMatchPercentage": 100.0 }, "licenses": [ { "licenseDisplay": "Apache License 2.0", "license": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/licenses/7cae335f-1193-421e-92f1-8802b4243e93", "spdxId": "Apache-2.0", "licenseFamilyName": "PERMISSIVE", "licenses": [], "ownership": "OPEN_SOURCE" } ], "origins": [ { "name": "7.0.0.SR1", "origin": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9", "externalNamespace": "maven", "externalId": "org.activiti:activiti-bpmn-converter:7.0.0.SR1", "externalNamespaceDistribution": false, "packageUrl": "pkg:maven/org.activiti/activiti-bpmn-converter@7.0.0.SR1", "_meta": { "allow": [], "links": [ { "rel": "origin", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9" }, { "rel": "matched-files", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9/matched-files" }, { "rel": "upgrade-guidance", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9/upgrade-guidance" }, { "rel": "transitive-upgrade-guidance", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9/transitive-upgrade-guidance" }, { "rel": "component-origin-copyrights", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9/copyrights" } ] } } ], "usages": [ "DYNAMICALLY_LINKED" ], "matchTypes": [ "FILE_DEPENDENCY" ], "inputExternalIds": [ "org.activiti:activiti-bpmn-converter:7.0.0.SR1" ], "releasedOn": "2025-07-16T08:09:52.985Z", "licenseRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "securityRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "versionRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 0 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 1 }, { "countType": "CRITICAL", "count": 0 } ] }, "activityRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "operationalRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 0 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 1 }, { "countType": "CRITICAL", "count": 0 } ] }, "activityData": { "lastCommitDate": "2019-03-05T11:25:59.000Z", "newerReleases": 416 }, "reviewStatus": "NOT_REVIEWED", "approvalStatus": "NOT_IN_VIOLATION", "policyStatus": "NOT_IN_VIOLATION", "componentModified": false, "_meta": { "allow": [ "GET" ], "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478", "links": [ { "rel": "comments", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/component-versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/comments" }, { "rel": "component-issues", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/component-versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/issues" }, { "rel": "policy-rules", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/policy-rules" }, { "rel": "vulnerabilities", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/vulnerabilities" }, { "rel": "matched-files", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins/2ec04e6d-12d2-4416-8049-8685e13912d9/matched-files" }, { "rel": "origins", "href": "https://oss.cn.kworld.kpmg.com/api/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/origins" }, { "rel": "policy-status", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/0cd833f4-80d8-4666-88f2-e8c4aee85478/policy-status" }, { "rel": "bom-component-version-license", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/fbd5bd81-0a1a-4e96-af3a-61cf7bb5eca2/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/license-adjustment" }, { "rel": "component-home", "href": "http://activiti.org/modules/activiti-bpmn-converter" } ] } }, { "componentName": "Activiti - BPMN Model", "componentVersionName": "7.0.0.SR1", "component": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca", "componentVersion": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca", "totalFileMatchCount": 1, "matchConfidenceStatus": "OK", "matchAmbiguity": { "kbArtifactMatchPercentage": 100.0 }, "licenses": [ { "licenseDisplay": "Apache License 2.0", "license": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/licenses/7cae335f-1193-421e-92f1-8802b4243e93", "spdxId": "Apache-2.0", "licenseFamilyName": "PERMISSIVE", "licenses": [], "ownership": "OPEN_SOURCE" } ], "origins": [ { "name": "7.0.0.SR1", "origin": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008", "externalNamespace": "maven", "externalId": "org.activiti:activiti-bpmn-model:7.0.0.SR1", "externalNamespaceDistribution": false, "packageUrl": "pkg:maven/org.activiti/activiti-bpmn-model@7.0.0.SR1", "_meta": { "allow": [], "links": [ { "rel": "origin", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008" }, { "rel": "matched-files", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008/matched-files" }, { "rel": "upgrade-guidance", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008/upgrade-guidance" }, { "rel": "transitive-upgrade-guidance", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008/transitive-upgrade-guidance" }, { "rel": "component-origin-copyrights", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008/copyrights" } ] } } ], "usages": [ "DYNAMICALLY_LINKED" ], "matchTypes": [ "FILE_DEPENDENCY" ], "inputExternalIds": [ "org.activiti:activiti-bpmn-model:7.0.0.SR1" ], "releasedOn": "2025-07-16T08:09:52.985Z", "licenseRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "securityRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "versionRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 0 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 1 }, { "countType": "CRITICAL", "count": 0 } ] }, "activityRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 1 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 0 }, { "countType": "CRITICAL", "count": 0 } ] }, "operationalRiskProfile": { "counts": [ { "countType": "UNKNOWN", "count": 0 }, { "countType": "OK", "count": 0 }, { "countType": "LOW", "count": 0 }, { "countType": "MEDIUM", "count": 0 }, { "countType": "HIGH", "count": 1 }, { "countType": "CRITICAL", "count": 0 } ] }, "activityData": { "lastCommitDate": "2019-03-05T11:25:35.000Z", "newerReleases": 417 }, "reviewStatus": "NOT_REVIEWED", "approvalStatus": "NOT_IN_VIOLATION", "policyStatus": "NOT_IN_VIOLATION", "componentModified": false, "_meta": { "allow": [ "GET" ], "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca", "links": [ { "rel": "comments", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/component-versions/f43f5264-e1e9-421c-acea-818417bf70ca/comments" }, { "rel": "component-issues", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/component-versions/f43f5264-e1e9-421c-acea-818417bf70ca/issues" }, { "rel": "policy-rules", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/policy-rules" }, { "rel": "vulnerabilities", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/vulnerabilities" }, { "rel": "matched-files", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins/388c1ecc-b367-4457-b98f-18e0fde80008/matched-files" }, { "rel": "origins", "href": "https://oss.cn.kworld.kpmg.com/api/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/origins" }, { "rel": "policy-status", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/f43f5264-e1e9-421c-acea-818417bf70ca/policy-status" }, { "rel": "bom-component-version-license", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components/bcdb9f5b-0b19-4861-a225-0db5b75267ca/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/license-adjustment" }, { "rel": "component-home", "href": "http://activiti.org/activiti-bpmn-model" } ] } } ], "appliedFilters": [], "_meta": { "allow": [ "GET" ], "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components", "links": [ { "rel": "quick-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=adjusted", "name": "adjusted", "label": "Adjusted" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomComment", "name": "bomComment", "label": "Component Comments" }, { "rel": "quick-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=componentIntelligence", "name": "componentIntelligence", "label": "Component Intelligence" }, { "rel": "dynamic-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomComponents", "name": "bomComponents", "label": "Component Version" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomInclusion", "name": "bomInclusion", "label": "Ignore" }, { "rel": "dynamic-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomLicense", "name": "bomLicense", "label": "License" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=licenseRisk", "name": "licenseRisk", "label": "License Risk" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomMatchType", "name": "bomMatchType", "label": "Match Type" }, { "rel": "quick-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=missingData", "name": "missingData", "label": "Missing Custom Field Data" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomAttribution", "name": "bomAttribution", "label": "Notices File Report" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=operationalRisk", "name": "operationalRisk", "label": "Operational Risk" }, { "rel": "dynamic-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=policyRuleViolation", "name": "policyRuleViolation", "label": "Policy Rule" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=policyCategory", "name": "policyCategory", "label": "Policy Rule Category" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=policyRuleSeverity", "name": "policyRuleSeverity", "label": "Policy Rule Severity" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomPolicy", "name": "bomPolicy", "label": "Policy Violations" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomReviewStatus", "name": "bomReviewStatus", "label": "Review Status" }, { "rel": "dynamic-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=sbomCreator", "name": "sbomCreator", "label": "SBOM Creator Name" }, { "rel": "dynamic-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=sbomName", "name": "sbomName", "label": "SBOM Name" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=securityRisk", "name": "securityRisk", "label": "Security Risk" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomMatchReviewStatus", "name": "bomMatchReviewStatus", "label": "Snippet Match Status" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomComponentSource", "name": "bomComponentSource", "label": "Source/Type" }, { "rel": "quick-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=unknownVersion", "name": "unknownVersion", "label": "Unknown Version" }, { "rel": "static-filter", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components-filters?filterKey=bomUsage", "name": "bomUsage", "label": "Usage" }, { "rel": "paging-next", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components?limit=2&offset=2" }, { "rel": "paging-last", "href": "https://oss.cn.kworld.kpmg.com/api/projects/1633754f-2535-41da-b18e-c93d1a427ea9/versions/4d26c1ed-8535-4b0f-851a-9088f59599ae/components?limit=2&offset=222" } ] } }
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值