LeetCode Weekly Contest 244 1問目 - Determine Whether Matrix Can Be Obtained By Rotation [1886]

Source

LeetCode Weekly Contest 244
問題文

問題概要

省略

解法

省略

cLayversion 20210607-1)のコード

C++に変換後のコードはこちら

#define main dummy_main
{}
#undef main

class Solution {
public:
  bool findRotation(vector<vector<int>>& mat, vector<vector<int>>& target) {
    rep(4){
      if(mat==target) return true;
      mat = Rot90(mat);
    }
    return false;
  }
};

Current time: 2024年04月23日20時08分33秒
Last modified: 2021年06月07日19時37分41秒 (by laycrs)
Tags: Competitive_Programming_Incomplete LeetCode
トップページに戻る

Logged in as: unknown user (not login)

ログイン: