07/Lattice
Name the pattern. Offline.
Lattice is a trainer for software engineering interview recognition. A break is recognize, diagnose, reconstruct. Smell names the tool from an unlabeled brief. Progress stays on the phone.
- iPhone
- Offline
- No account
The App Store listing is not live yet. Leave an email and we will write when it is.
Your lattice
Next: Hash Map · Due 3
What is this loop guaranteeing after every shrink?
def longest_ok(s):
L = 0
best = 0
state = {}
for R, ch in enumerate(s):
state[ch] = state.get(ch, 0) + 1
Unlabeled brief
You have an unsorted list of numbers. Decide whether two distinct indices add to a target T. Linear time is fine. Extra memory is fine.
01/A break
-
01
Recognize
Name the pattern from a tight prompt and a strip of code.
-
02
Diagnose
Find the stall: bound, structure, or walk.
-
03
Reconstruct
Put the move back in order from tokens or blanks.
On the phone
The pack ships in the app. Scores and review live on the device. You do not need an account.
A spare break
One sitting is recognize, diagnose, reconstruct. Smell is a separate gym: name the tool from a brief with the label stripped.