You are given an array of transaction strings transactions where each transaction transactions[i] is formatted as a comma separated string "{name},{time},{amount},{city}".
A transaction is considered invalid if:
The amount strictly exceeds $\
It takes place within name occurring in a different city.
Return a list of all invalid transactions. You may return the results in any order.
Constraints:
transactions.length
Each transactions[i] takes the form "{name},{time},{amount},{city}"
Each name and city consists of lowercase English letters and has a length between
Each time consists of digits and represents an integer between
Each amount consists of digits and represents an integer between
You are given an array of transaction strings transactions where each transaction transactions[i] is formatted as a comma separated string "{name},{time},{amount},{city}".
A transaction is considered invalid if:
The amount strictly exceeds $\
It takes place within name occurring in a different city.
Return a list of all invalid transactions. You may return the results in any order.
Constraints:
transactions.length
Each transactions[i] takes the form "{name},{time},{amount},{city}"
Each name and city consists of lowercase English letters and has a length between
Each time consists of digits and represents an integer between
Each amount consists of digits and represents an integer between