I was contacted by an HR representative saying that the company had opened up full-remote positions.
The process consists of a very brief introductory interview (remote), followed by a live coding technical test (remote), followed by an on-site interview day (covering both design/technical and behavioral aspects).
After the technical interview, HR comes out and says that the feedback is extremely positive, but unfortunately they decided that full-remote was just an experiment (???) and cancelled it.
It doesn't seem like a great display of strategy and execution.
Objective
Implement a TransactionAnalyzer class that processes a list of transactions, categorizes them, and provides insights based on transaction data.
Requirements
Given a Transaction class with the following attributes:
id (uuid): Unique identifier for the transaction.
category (Category): Category of the transaction (e.g., “Food”, “Utilities”).
amount (double): The transaction amount.
timestamp (Date): The date of the transaction
Create a TransactionAnalyzer class that supports the following methods:
addTransaction(Transaction transaction): Adds a transaction to the system.
getHighestCategory(): Returns the category with the highest total amount spent.
getTopNCategories(int n): Returns a list of the top n categories based on the number of transactions.
getTransactionsInRange(Date startDate, Date endDate): Returns a list of transactions within a given date range
import org.junit.; import org.junit.runner.; import java.util.*;
enum Category { FOOD, UTILITIES, ENTERTAINMENT, GROCERIES; }
class Transaction { private final UUID id; private final Category category; private final double amount; private final Date timestamp;
public Transaction(UUID id, Category category, double amount, Date timestamp) {
this.id = id;
this.category = category;
this.amount = amount;
this.timestamp = timestamp;
}
public UUID getId() {
return id;
}
public Category getCategory() {
return category;
}
public double getAmount() {
return amount;
}
public Date getTimestamp() {
return timestamp;
}
}
class TransactionAnalyzer { private final ArrayList transactions = new ArrayList<>();
public void addTransaction(Transaction transaction) {
}
public Category getHighestCategory() {
}
public List getTopNCategories(int n) {
return null;
}
public List getTransactionsInRange(Date startDate, Date endDate) {
return null;
}
}
/* Tests */
public class Solution {
// @Test // public void testaddTransactionWithNullShouldThrow() { }
@Test public void testGetHighestCategoryHappyPath() {
}
public static void main(String[] args) { JUnitCore.main("Solution"); } }
The following metrics were computed from 2 interview experiences for the Satispay Senior Software Engineer role in Milan, Italy.
Satispay's interview process for their Senior Software Engineer roles in Milan, Italy is extremely selective, failing the vast majority of engineers.
Candidates reported having mixed feelings for Satispay's Senior Software Engineer interview process in Milan, Italy.