LeetCode 626: Exchange Seats
Date: February 09, 2026Category: SQLTime Taken: 15 minutesDifficulty: Medium
Problem Statement
Write a solution to swap the seat id of every two consecutive students. If the number of students is odd, the id of the last student is not swapped.
Retur...
varchasvh.hashnode.dev2 min read