You are given a 0-indexed integer array nums.
The distinct count of a subarray nums[i..j] is the number of distinct values present in that subarray.
Return the sum of the squares of the distinct counts of all subarrays of nums.
Since the answer may be very large, return it modulo 10^9 + 7.
Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use client"; | |
| import React, { useState } from "react"; | |
| import Link from "next/link"; | |
| import { useParams } from "next/navigation"; | |
| interface AuditLine { | |
| id: number; | |
| trade: string; | |
| code: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UEsDBBQAAAAIAPArXlvhCSRXAAEAAMMBAAAQAAAAYnVpbGQuZ3JhZGxlLmt0c5VQu04EMQzs9ytcQnGJaKGkgBrRn7yJsxfWG0dxwuqE+HeS4yFRUJAm8ozHY4+18Cz5wPRKDHOL7CFEJthPVAjO0sBhAvQenKQQl1awRkkgeXza0W3rZRVAZtA2H3KRF3JV7Sa+MamZMrcl9t63CfpDjqhXHGc1X4TB5ItEbzBnju5icA2jOENAVvpLt0rlmL7l/5H0tbMo/Za8T5O18EicqdxCknqKaRmnuROmhWBEcjcU9hKUWQp6JrNW7U6F0J/BU4iJFCTRfT9lfWoJHi5tUFFXMwwGFopsP4QIwx6Tlx2kQNNPSG0fcnRjisl6A6FzofWQWRx2gZQ1sOxm+gBQSwMEFAAAAAgAMBpdW/GltWPzCAAAhhYAAAcAAABncmFkbGV3vVhtc9u4Ef7OX7GB1ch2TdH2JbmrPUqrkxRbiS15JNlOpmoimIQkJBTJEKRlzfn+e3cBkiL90l7bTDWeMV4Wi8Xi2WcX3HrhpCp2bmTgiOAW1MKytqwtaIfROpbzRQKH+wevIVkICLEvA+4DT5NFGGM/a6mGXnImXREo4UEaeCLWS1oRd/FfNrMHVyJWMgzgsLEP2yTAsim2c4wa1mEKS76GIEwgVQJVSAUz6QsQd66IEpABuOEy8iUPXAErmSz0NpkSNAM+ZSrCm4SjNEf5CHuzshzwRBusf4skidSR46xWqwbX5jbCeO74RlQ5Z712tz/q2miyXnQZ+EIpiMX3VMZ42Js18AgtcvkN2unzlfbLPBY4l4Rk8SqWiQzme6DCWbLisUAtnlRJLG/SpOKu3D48dVkAHcYDYK0R9EYMfm2NeqM91HHdG58OLsdw3RoOW/1xrzuCwRDag36nN+4N+th7B63+J/jQ63f2QKCzcBtxF8VkPxopyZHCI6+NhKgYMAuNQSoSrpxJF88VzFM+FzAPb0Uc4HEgEvFSKrpOheZ5qMWXS5nwRI88OhRh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <files> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap-0.0.1-x86_64-pc-windows-gnu.zip.txt" checksum="4EFF81B90E5EEB70B4C5968B714259E1" /> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap.nupkg" checksum="605EE5E2C28C690BFD7DB5BDBDB5E1A7" /> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\gitmoap.nuspec" checksum="C3A5C249B40938B41CAAFDDC3681EC95" /> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\chocolateyinstall.ps1" checksum="CC86FD2780BDA81C8F79BE3A5E9DD93B" /> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\chocolateyuninstall.ps1" checksum="75C58024A2E986A38642C2824367601E" /> | |
| <file path="C:\ProgramData\chocolatey\lib\gitmoap\tools\gitmoap-0.0.1-x86_64-pc-windows-gnu\git-remote-gitmoap.exe" checksum="DF16E9D1801EDBBF41526F9A9A678A41" /> | |
| <file path="C:\ProgramData\chocolatey\li |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 25 columns, instead of 21 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| address,parcel_number,pin,owner_of_record,property_class,class_meaning,assessed_value,tax_year,last_sale_date,last_sale_price,zoning,zoning_api_code,zoning_source_api,zoning_summary,permits_last_24mo,permit_1_number,permit_1_type,permit_2_number,permit_2_type,permits_last_24mo_arcgis,permit_arcgis_1_number,permit_arcgis_1_type,listing_paragraph,source_query_url,retrieved_at_utc | |
| "4000 Lancaster Ave, Philadelphia, PA 19104",882933555,1001310154,AULD DENNIS A,COMMERCIAL,"Commercial - income-producing non-residential use (retail, office, restaurant, service or similar)","$52,600",2026,2017-03-21,"$30,000",CMX-2,CMX2,ArcGIS Zoning_BaseDistricts (spatial),"CMX-2 (Neighborhood Commercial Mixed-Use) is a Philadelphia commercial/mixed-use district: it exists to allow commercial use, and in the mixed-use districts residential use in the same building, with the specific uses and dimensional limits set by Zoning Code Title 14.",0,none issued in window,none issued in window,none issued in window,none issued in window,0,no |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 25 columns, instead of 21 in line 1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| address,parcel_number,pin,owner_of_record,property_class,class_meaning,assessed_value,tax_year,last_sale_date,last_sale_price,zoning,zoning_api_code,zoning_source_api,zoning_summary,permits_last_24mo,permit_1_number,permit_1_type,permit_2_number,permit_2_type,permits_last_24mo_arcgis,permit_arcgis_1_number,permit_arcgis_1_type,listing_paragraph,source_query_url,retrieved_at_utc | |
| "4000 Lancaster Ave, Philadelphia, PA 19104",882933555,1001310154,AULD DENNIS A,COMMERCIAL,"Commercial - income-producing non-residential use (retail, office, restaurant, service or similar)","$52,600",2026,2017-03-21,"$30,000",CMX-2,CMX2,ArcGIS Zoning_BaseDistricts (spatial),"CMX-2 (Neighborhood Commercial Mixed-Use) is a Philadelphia commercial/mixed-use district: it exists to allow commercial use, and in the mixed-use districts residential use in the same building, with the specific uses and dimensional limits set by Zoning Code Title 14.",0,none issued in window,none issued in window,none issued in window,none issued in window,0,no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ESC = [char]27 | |
| $logo = @( | |
| "███████ █████ ██████ ██████ ███ ███" | |
| " ███ ██ ██ ██ ██ ██ ██ ████ ████" | |
| " ███ ███████ ██████ ██ ██ ██ ████ ██" | |
| " ███ ██ ██ ██ ██ ██ ██ ██ ██ ██" | |
| "███████ ██ ██ ██ ██ ██████ ██ ██" | |
| ) |
Last updated: October 17, 2026
ReadAloud Studio is a browser extension that reads web pages aloud and, if you choose, summarizes them, answers questions about them, or translates them. It works with speech and AI services that you choose and configure. This policy explains what the extension handles, where it goes, and what stays on your device.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fake-png |