Demo entry 6632150

fffffffffffffffffff

   

Submitted by anonymous on Jul 21, 2017 at 16:15
Language: C++. Code size: 525 Bytes.

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <functional>
#include <sstream>
#include <ctime>


using namespace std;

class Printer {
public:
	vector<int> clockwisePrint(vector<vector<int> > mat, int n, int m) {
		// write code here
		vector<int> res;
		if (n <= 0 || m <= 0)
			return res;
		int start = 0;
		while (n > start * 2 && m > start * 2){
			printMatCircle(mat, n, m, start, res);
			start++;
		}
		return res;
	}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).