Skip to content

Instantly share code, notes, and snippets.

View Vivek-abstract's full-sized avatar
:octocat:
Learning

Vivek Gawande Vivek-abstract

:octocat:
Learning
  • Tata Consultancy Services
  • Mumbai, India
View GitHub Profile
class Leap { // Do not erase this line
// Write the check_leap function below this line
public static int check_leap(int y) {
if(y % 4 == 0) {
if(y % 100 == 0) {
if(y % 400 == 0) {
return 1;
} else {
return 0;
import java.util.Scanner;
class test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int l = 0; l < n; l++) {
import java.io.*;
import java.util.*;
public class MacroPass1 {
public static void main(String[] args) {
String[][] replacements = {{"&ARG0", "#0"},
{"&ARG1", "#1"},
{"&ARG2", "#2"},
{"&ARG3", "#3"}};
import java.io.*;
import java.util.*;
public class MacroPass2 {
public static void main(String[] args) {
String[][] replacements = {{"&ARG0", "#0"},
{"&ARG1", "#1"},
{"&ARG2", "#2"},
{"&ARG3", "#3"}};
import java.util.*;
public class COCompileTimeEvaluation {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter number of expressions");
int n = sc.nextInt();
sc.nextLine();
import java.util.*;
public class CODeadCodeElimination {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number of expressions:");
int n = sc.nextInt();
sc.nextLine();
#include <stdio.h>
int main()
{
int points[10][2], table[20][100];
int nPoints, cal_a, cal_b, max;
printf("Enter number of points: ");
scanf("%d", &nPoints);
{
"compilerOptions": {
...
},
"files": [
"types/MicrosoftMaps/CustomMapStyles.d.ts",
"types/MicrosoftMaps/Modules/Autosuggest.d.ts"
],
...
}
declare module '*';
import { Component } from "@angular/core";
import { NavController } from "ionic-angular";
import { Subscription } from "rxjs";
import { finalize } from "rxjs/operators";
import { Geolocation } from "@ionic-native/geolocation";
@Component({
selector: "page-new-post",
templateUrl: "new-post.html"
})