solulubeta
Sign in
DSA Basics / Warm-up
01.30 · Problem

Shuffling Two Decks Together

Easy Two indexes walking together Pro

This problem is part of solulu Pro

Two friends each hold a small deck of numbered cards. They shuffle by taking one card from each deck in turn — first card of the first deck, first card of the second, second card of the first, and so on. When one deck…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 30 of 90 · updated 2026-10-12