Deutsche Bank 2024 Papers
Previous year papers with coding questions
Practice Deutsche Bank placement paper coding questions with detailed solutions. Access Deutsche Bank OA coding problems in C++, Java, Python.
This page contains Deutsche Bank coding questions from Deutsche Bank OA placement papers with detailed solutions.
Deutsche Bank OA Coding Section:
Solution (Java):
public Map<String, Double> optimizePortfolio( List<Investment> investments, double totalCapital) { // Sort by risk-adjusted return investments.sort((a, b) -> Double.compare( b.returnRatio / b.risk, a.returnRatio / a.risk));
Map<String, Double> allocation = new HashMap<>(); double remaining = totalCapital;
for (Investment inv : investments) { double amount = Math.min(remaining, inv.maxAllocation); allocation.put(inv.id, amount); remaining -= amount; if (remaining <= 0) break; }
return allocation;}Time Complexity: O(n log n)
Deutsche Bank 2024 Papers
Previous year papers with coding questions
Deutsche Bank Main Page
Complete Deutsche Bank placement guide
Practice Deutsche Bank coding questions regularly!