Skip to content

Instantly share code, notes, and snippets.

static class Entity {
char character;
int frequency;
Entity(char p, int q) {
character = p;
frequency = q;
}
}
public static int maxPresentations(List<Integer> scheduleStart, List<Integer> scheduleEnd) {
if (scheduleStart.size() != scheduleEnd.size()) {
return 0;
}
int size = scheduleStart.size();
int[][] events = new int[2][size];
for (int x = 0; x < size; x++) {
events[0][x] = scheduleStart.get(x);
events[1][x] = scheduleEnd.get(x);
}
public class Solution {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int len = s.nextInt();
s.nextLine();
String str = s.nextLine();
int shift = s.nextInt();
char sarr[] = str.toCharArray();
@zaidw21
zaidw21 / new bat
Last active January 27, 2020 18:31
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
@echo off
for /f %%G in ('dir *.apk /b') do set filename=%%~G
set filename=%filename:~0,-4%
ECHO -------------------------------------------------- Creating folder started ---------------------------------
apktool b %filename%
ECHO -------------------------------------------------- Creating folder completed -------------------------------
ECHO -------------------------------------------------- Copying dist to SignApk ---------------------------------
move %filename%\dist\%filename%.apk SignApk
ECHO -------------------------------------------------- Copying Completed ---------------------------------------
@zaidw21
zaidw21 / apk
Created January 27, 2020 04:20
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
@echo off
SET STR=%1
ECHO -------------------------------------------------- Creating folder started ---------------------------------
apktool b %STR%
ECHO -------------------------------------------------- Creating folder completed -------------------------------
ECHO -------------------------------------------------- Copying dist to SignApk ---------------------------------
cd %STR%\dist
move %STR%.apk SignApk
ECHO -------------------------------------------------- Copying Completed ---------------------------------------
<html>
<head>
<title>Test</title>
<style>
@import 'https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300';
html,
body {
margin: 0;
package com.sgcib.bars.controller;
import java.util.HashMap;
public class Test {
public static void main(String[] args) {
int arr[] = { 10, 2, -2, -20, 10 };
int sum = -10;
int n = arr.length;