This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Solution { | |
| public: | |
| bool isvalid(vector<vector<char>>& board, int row, int col, char d){ | |
| for(int i = 0; i<9; ++i){ | |
| if(board[i][col] == d) return false; | |
| if(board[row][i] == d) return false; | |
| } | |
| int start_row = row/3 * 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "workbench.editor.empty.hint": "hidden", | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.formatOnSave": true, | |
| "editor.linkedEditing": true, | |
| "emmet.includeLanguages": { | |
| "javascript": "javascriptreact" | |
| }, | |
| "editor.cursorSmoothCaretAnimation": "on", | |
| "editor.cursorBlinking": "smooth", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "workbench.editor.empty.hint": "hidden", | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.formatOnSave": true, | |
| "github.copilot.enable": { | |
| "*": false, | |
| "plaintext": false, | |
| "markdown": false, | |
| "scminput": false | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "vim.useSystemClipboard": true, | |
| "vim.visualModeKeyBindingsNonRecursive": [ | |
| { | |
| "before": ["p"], | |
| "commands": ["editor.action.clipboardPasteAction", "extension.vim_escape"] | |
| } | |
| ], | |
| "vim.easymotion": true, | |
| "vim.incsearch": true, | |
| "vim.useCtrlKeys": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int power(int x, int m) { | |
| int result = 1; | |
| while (m > 0) { | |
| if (m % 2 == 1) { | |
| result *= x; | |
| } | |
| x *= x; | |
| m /= 2; | |
| } | |
| return result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import express from 'express'; | |
| import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3'; | |
| import bodyParser from 'body-parser'; | |
| import dotenv from 'dotenv'; | |
| import fetch from 'node-fetch'; | |
| dotenv.config(); | |
| const app = express(); | |
| app.use(bodyParser.urlencoded({ extended: false })); |