Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~351 People Reached
Favorite Forums

2 Posted Topics

Member Avatar for Rik30

Hello! I'm trying to find the longest sequence of equal elements in a matrix M x N. I use two nested for-loops to search into the rows and compare the cells - same thing for the columns. When two adjacent elements are equal, I increment a counter. If the counter …

Member Avatar for Rik30
0
222
Member Avatar for Dankwah Emma

I suggest you to use the rand() function to generate a pseudo-random number. #include <cstdlib> int target = rand() % 100 + 1;

Member Avatar for Rik30
0
129

The End.