Loading…
Practice like real exam. where you stand.
Take company-wise mock tests, get instant detailed analysis, find your weak topics and improve faster.
Q.12 MCQ +1 · −0.25
A 240 m train passes a pole in 12 s. How long will it take to cross a 360 m platform?
Questions
Q.2 Coding 10 marks · Python 3
Return the length of the longest substring without repeating characters.
def longest_unique(s):
seen, start, best = {}, 0, 0
for i, ch in enumerate(s):
if seen.get(ch, -1) >= start:
start = seen[ch] + 1
seen[ch] = i
best = max(best, i - start + 1)
return best
Test cases
Section performance
Topic-wise performance weakest first
Pick your exam — each one opens on its papers and the official pattern it follows.
4 exams
TCS
Infosys
Accenture