Count deletions making array fair

Quick Overview

This question evaluates proficiency with array manipulation, parity-aware summation, and combinatorial counting when elements are removed, situating it in the Coding & Algorithms domain.

Count deletions making array fair

Company: TikTok

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

##### Question LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at even indices equaling the sum at odd indices (k = 1). Follow-up: extend the algorithm to count ways after deleting exactly k elements. https://leetcode.com/problems/ways-to-make-a-fair-array/description/

Quick Answer: This question evaluates proficiency with array manipulation, parity-aware summation, and combinatorial counting when elements are removed, situating it in the Coding & Algorithms domain.

|Home/Coding & Algorithms/TikTok
TikTok logo
TikTok
Jul 29, 2025, 8:05 AM
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
5
0
Question

LeetCode 1664. Ways to Make a Fair Array – Given an integer array nums, count the indices whose removal results in the sum of elements at even indices equaling the sum at odd indices (k = 1). Follow-up: extend the algorithm to count ways after deleting exactly k elements.

https://leetcode.com/problems/ways-to-make-a-fair-array/description/

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...