View download-vs-code-server.sh
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/sh | |
set -e | |
# You can get the latest commit SHA by looking at the latest tagged commit here: https://github.com/microsoft/vscode/releases | |
commit_sha="08a217c4d27a02a5bcde898fd7981bda5b49391b" | |
archive="vscode-server-linux-x64.tar.gz" | |
owner='microsoft' | |
repo='vscode' | |
# Auto-Get the latest commit sha via command line. |
View houserobber3.cpp
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 "code.h" | |
#include "treenode.h" | |
class Solution { | |
private: | |
map<long, int> memo; | |
long left(long i) { return 2 * i + 1; } | |
long right(long i) { return 2 * i + 2; } |
View perfcal.js
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
const ppc=function(){ | |
var total_problems=window.document.getElementsByClassName("reactable-data"); | |
var i; | |
var sum=0; | |
var total=total_problems[0].childNodes.length; | |
for (i=0;i<total;i++){ | |
var row=total_problems[0].childNodes[i]; | |
var td=row.childNodes[0]; | |
var attribute=td.getAttribute("value"); | |
if(attribute==="ac"){ |
View OverrideOnLocalVar
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
package core.src.thread; | |
import java.util.Arrays; | |
public class Thread { | |
public static void main(String[] args) { | |
A a=new A(); | |
new java.lang.Thread(new RunA(a)).start(); | |
new java.lang.Thread(new RunB(a)).start(); |
View LCM Printer.java
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.Scanner; | |
public class LCM { | |
public static void main(String[] args) { | |
Scanner sc=new Scanner(System.in); | |
int a=sc.nextInt(); | |
int b=sc.nextInt(); | |
int hcf=gcd(a,b); | |
int lcm=(a*b)/hcf; |
View gist:3e18c92656e6c4a08686a86fa9b20839
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
package strings; | |
/* | |
import java.util.*; | |
class Distinct { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
boolean[] duplicates = new boolean[128]; | |
String str = sc.nextLine(); |
View Distinct.java
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
package strings; | |
import java.util.*; | |
class Distinct { | |
public static void main(String args[]) { | |
Scanner sc = new Scanner(System.in); | |
boolean[] duplicates = new boolean[128]; | |
String str = sc.nextLine(); | |
String res = ""; |
View StackImplementationOnParenthesisChecker
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
package strings; | |
import java.util.Scanner; | |
class StackNode { | |
private String expression; | |
private StackNode below; | |
public StackNode getBelow() { | |
return below; |
View LinkedList.java
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.Scanner; | |
class ListNode { | |
private int value; | |
private ListNode nextNode; | |
public ListNode() { | |
value = -1; | |
nextNode = null; | |
} |
View xyz.java
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.Collections; | |
import java.util.Comparator; | |
import java.util.LinkedList; | |
import java.util.Scanner; | |
public class icpc1 { | |
static class A{ | |
int a,b,c,index; | |
} |
NewerOlder