Skip to content

Instantly share code, notes, and snippets.

View so77id's full-sized avatar
👶
Father in process

Miguel Rodriguez so77id

👶
Father in process
  • Microsoft
  • Santiago, Chile
View GitHub Profile
@so77id
so77id / BalancedParentheses.java
Created April 21, 2023 21:47
Ejerciciso pre solemne 1
import java.util.*;
public class BalancedParentheses {
public static boolean isBalanced(String expression) {
Stack<Character> stack = new Stack<Character>();
for (int i = 0; i < expression.length(); i++) {
char c = expression.charAt(i);
if (c == '(' || c == '{' || c == '[') {
stack.push(c);
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
@so77id
so77id / anagrams.java
Created November 16, 2021 20:21
EV2-I2
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
//el-k-elemento-menor-en-un-abb
//https://www.hackerrank.com/contests/eda-2021-s2-ev2-i1/challenges/el-k-elemento-menor-en-un-abb
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
@so77id
so77id / make-string.java
Created September 8, 2021 17:06
Evaluacion I Intento I Semestre II
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
#include <iostream>
using namespace std;
/*
* Complete the 'ranking3' function below.
*
* The function accepts INTEGER_ARRAY roulette as parameter.
*/
const int SIZE = 37;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
@so77id
so77id / 01-last-mountain.cpp
Created July 3, 2021 19:55
EV3 Progrmacion 2021-1
#include<iostream>
#include<cmath>
using namespace std;
const int SIZE = 1000;
int main() {
int size;
int list[SIZE], s1[SIZE], s2[SIZE];
#include<iostream>
#include<cstring>
using namespace std;
const int SIZE = 50;
int main() {
char line[SIZE];
memset(line, '\0', SIZE);