Matrix Is NICE
CodeChefOpen on judge ↗
A matrix of size NxN is called to be nice if it satisfis the following condition: min(r1, r2, ..., rN) = max(c1, c2, ..., cN) Where, ri = max(ri1, ri2, ..., riN) and ci = min(ci1, ci2,...,ciN) Write a C Program to check whether the given matrix is nice or not? ###Input: - Size of the matrix N - Matrix of size N*N ###Output: NICE (or) NOT NICE ###Constraints - Write a function to check
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start