Message from C, C++ discussions

December 2019

— /notes

— 

List of notes in C/C++:
- 0_to_show_item_use"#item"
- `c++_isnt_c_with_classes`
- awesomeness
- best
- best-book
- bingo
- bro
- callingfunction
- cbook
- cpp
- cppbookguide
- findprojects
- freeprogrammingbooks
- gcc9
- goodcodingmentality
- goodgoogling
- googleit
- great
- hownottoask
- howtoask
- howtopostcode
- howtoprogram
- ide
- ides
- imhacker
- implicit-type-conversions
- india
- learn
- mcve
- meta
- noendl
- nousingstd
- offtopic
- ossu
- ot
- reading-cdecl
- reference-the-standard
- rules
- stop-teaching-c
You can retrieve these notes by using /get notename, or #notename

— #cbook

— Https://stackoverflow.com/questions/562303/the-definitive-c-book-guide-and-list

— #cppbookguide

— Please Solve This
Given a matrix mxn matrix(m,n>3).You have to perform the following operations:

i) Find the same consecutive numbers in the matrix either vertically, horizontally or diagonally such that atleast four consecutive nos. are there.

ii) If there are more than one such set of numbers then print an integer outnum which is the minimum of such consecutive nos.

iii) If no such no. exists print -1.

Input Format

Input: first line contains two space separated integer m and n. Second m lines have n space separated integers.

Constraints

2<=m,n<=1000

Output Format

Output: an integer outnum or -1 if no such nos. exists

Sample Input 0
[29/12, 8:43 PM] FaizI New: output:_
[29/12, 8:44 PM] FaizI New: 5 6
7 8 9 5 4 2
5 7 9 4 5 2
6 8 7 9 2 2
1 4 2 7 6 2
1 1 1 1 1 4
Sample Output 0

1
Explanation 0

Here, There are two number such nos. which is consecutive for 4 times either in row ,column ,diagonals(i.e 1 and 2). Now print the min of( 1,2) ,which is 1.

Message permanent page

— /warn Read the rules: No one will solve your task. Only questions with your code problems to impliment.

Message permanent page

— User Sultan has 1/2 warnings; be careful!
The latest warn was because:
Read the rules: No one will solve your task. Only questions with your code problems to impliment.

Message permanent page

— Pls help i hv exams tommrow.

— Wow. rip your grades then

— /report

— Reported iftekhar to admins.​​​​​​​​​​​​​​​