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
/* | |
* Cassidoo's interview question of the week of Feb 13 2023 | |
* | |
* Author: Vyaas | |
*/ | |
package main | |
import "fmt" | |
func 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
import java.util.*; | |
class MarkdownFormatted { | |
private void format(String input) { | |
String[] newLineStrings = input.split("\n"); | |
ArrayList<ArrayList<String>> words = new ArrayList<>(); | |
int size = newLineStrings[0].split("\\|").length; | |
int[] largest = new int[size]; |
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 longestValidParentheses(String s) { | |
ArrayDeque<Integer> stack = new ArrayDeque<>(); | |
int max = 0; | |
stack.push(-1); | |
for(int i=0;i<s.length();i++) { | |
if(s.charAt(i) == '(') { | |
stack.push(i); | |
} else { | |
stack.pop(); |
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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec and Vyaas | |
# Date: 2014/11/04 |