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
static class Entity { | |
char character; | |
int frequency; | |
Entity(char p, int q) { | |
character = p; | |
frequency = q; | |
} | |
} | |
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
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); | |
} |
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
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(); |
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
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 --------------------------------------- |
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
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 --------------------------------------- |
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
<html> | |
<head> | |
<title>Test</title> | |
<style> | |
@import 'https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300'; | |
html, | |
body { | |
margin: 0; |
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
save |
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
a |
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 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; |
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
new |
NewerOlder