This file contains 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
name: Node - SSH deploy | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] |
This file contains 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: | |
int maxDiffInVector (vector<int>& cuts, int maxLimit) { | |
int maxDiff = 0; | |
if (cuts.size() == 1) { | |
maxDiff = max(maxDiff, cuts[0]); | |
maxDiff = max(maxDiff, maxLimit - cuts[0]); |
This file contains 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: | |
string s1; | |
string s2; | |
string s3; | |
vector<vector<int>> dp = vector<vector<int>>(105, vector<int>(105, -1)); | |
// funcion recursiva para calcular todas las posibilidades | |
bool isValid(int i, int j) { |
This file contains 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 { | |
// vectores auxiliares para navegar en 4 direcciones. | |
vector<int> row = {-1, 0, 1, 0}; | |
vector<int> col = {0, 1, 0, -1}; | |
public: | |
// BFS: Busqueda en amplitud contando las casillas nuevas que recorres | |
int countArea(vector<vector<int>>& grid, int i, int j) { | |
This file contains 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
#include <iostream> | |
#include <ctype.h> | |
#include <bits/stdc++.h> | |
using namespace std; | |
int main() { | |
string cadena; |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
char mano; | |
int dedo1 = 0; | |
int dedo2 = 0; | |
int dedo3 = 0; |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
int n; | |
cin>>n; | |
for (int i=n; i>0; i--) { | |
if (n%i == 0) { |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
long long n; | |
cin>>n; |
This file contains 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
#include<iostream> | |
using namespace std; | |
int main() { | |
int X1; | |
int X2; | |
// LECTURA DE DATOS |
This file contains 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
#include<iostream> | |
using namespace std; | |
int main() { | |
int X1; | |
int X2; | |
// LECTURA DE DATOS |
NewerOlder