Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2273. Find Resultant Array After Removing Anagrams #29

Open
PalmaAnd opened this issue Sep 27, 2023 · 0 comments
Open

2273. Find Resultant Array After Removing Anagrams #29

PalmaAnd opened this issue Sep 27, 2023 · 0 comments
Assignees
Labels
easy Easy labeled Leetcode problem Leetcode Leetcode problem

Comments

@PalmaAnd
Copy link
Owner

Link: https://leetcode.com/problems/find-resultant-array-after-removing-anagrams/

Description:
You are given a 0-indexed string array words, where words[i] consists of lowercase English letters.

In one operation, select any index i such that 0 < i < words.length and words[i - 1] and words[i] are anagrams, and delete words[i] from words. Keep performing this operation as long as you can select an index that satisfies the conditions.

Return words after performing all operations. It can be shown that selecting the indices for each operation in any arbitrary order will lead to the same result.

An Anagram is a word or phrase formed by rearranging the letters of a different word or phrase using all the original letters exactly once. For example, "dacb" is an anagram of "abdc".

@PalmaAnd PalmaAnd added easy Easy labeled Leetcode problem Leetcode Leetcode problem labels Sep 27, 2023
@PalmaAnd PalmaAnd self-assigned this Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy labeled Leetcode problem Leetcode Leetcode problem
Projects
None yet
Development

No branches or pull requests

1 participant