Audit and Enforce Least-Privilege IAM Permissions
Amazon easy AWSCloud
Python
Quick Solution
Beginner mode
1def solve(nums, target):
2 """Find pairs that sum to target"""
3 seen = {}
4 result = []
5
6 for i, num in enumerate(nums):
7 complement = target - num
8 if complement in seen:
9 result.append((seen[complement], i))
10 seen[num] = i
11
12 return result
Case 1
Case 2
Case 3
Daily free limit reached
You've viewed 1 of 1 free question today
· resets in 18h 0m
VPN/proxy detected. Free accounts on VPN have a reduced daily limit.
Upgrade to unlock
- 2 Active machines
- 2 vCPU · 8 GB RAM
- 20 GB storage
- 7-day labs data retention
- Unlimited time workspace data retention
- Labs and tutorials that need more powerful machines
- All interviews, including premium interviews
- + Everything in Free
Sign in to save your progress
Sign in to save your progress Sign In
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →