SparkNest Systems Coding round | Recent Online Assessment 2025 | 2D Array Generation & Anagram Logic | SparkNest Coding Round | Incremental Matrix Building & String Sorting
Question · Posted Mar 2026
Question 1: Generate 2D Array Problem Statement: Write a program that takes 4 inputs, where each input consists of 2 numbers in the format x,y. You are required to print a two-dimensional array having x rows and y columns for each input. The elements of the arrays should be whole numbers starting from 1 and incrementing by 1. input-: 2,2 2,3 3,3 3,4 Sample Output: [[1, 2], [3, 4]] [[1, 2, 3], [4, 5, 6]] [[1, 2, 3], [4, 5, ...
The full answer & interview discussion are available to premium members.
Log in Create a free account