- 1
I got a challenge from a friend. Can anyone help me?
Given matrix size N x N consists of numbers between 1 to N. Determine if the matrix doesn't contain a same number on the same row or column. Input: Input consists of one integer N, size given to bibi. Then, N rows follow each consists of N element of the matrix. Output: Output answers "yay" if the matrix doesn't contain a same number on the same row or column. Otherwise, the answer is "nay" Sample input: 1 1 Sample output: Yay Sample input: 2 1 2 1 2 Sample output: Nay Sample input: 3 1 2 3 2 3 1 3 1 2 Sample output: Yay *i have to use C
3 Answers
+ 2
Try to code it on your own first, then save the code and edit your original question above to include the code link inside the Description section. People here helps you with a troubled code, not necessarily writing the whole code for you though.
Here's how to attach code links in case you didn't know yet:
https://www.sololearn.com/post/74857/?ref=app
+ 1
Thank you i just started using this app so i dont know how to ask questions
+ 1
It's alright, we all got to start somewhere. I was just sharing a bit of tips đ