Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vinaypuranik's full-sized avatar
👋
hi

Vinay Puranik vinaypuranik

👋
hi
View GitHub Profile
import java.util.*;
class Solution{
public int solution(String S) {
List<String> sentences = new ArrayList<String>();
List<Integer[]> dot = getLocations(S, ".");
List<Integer[]> question = getLocations(S, "?");
List<Integer[]> exclaimation = getLocations(S, "!");
@vinaypuranik
vinaypuranik / gist:4b7867856ea75c1deede4630f770899d
Created August 8, 2019 17:42
Checkwriter for Number to Euros represenatation.
public class CheckWriter {
public static String BASIC_MONEYTARY_UNIT = " Euros";
public static String MONEYTARY_UNIT = " cents";
public static int MILLIONS = 1000000;
public static int THOUSANDS = 1000;
public static void main(String[] args) {
@vinaypuranik
vinaypuranik / CheckWriter.java
Last active August 8, 2019 17:48
Checkwriter for Number to Euros representation.
public class CheckWriter {
public static String BASIC_MONEYTARY_UNIT = " Euros";
public static String MONEYTARY_UNIT = " cents";
public static int MILLIONS = 1000000;
public static int THOUSANDS = 1000;
public static void main(String[] args) {
@vinaypuranik
vinaypuranik / MaxWidth.java
Last active May 8, 2020 12:04
MaxWidth of a vertical path
import java.util.*;
/*
Time complexity O(N*logN) where n is the number of x points.
Space O(1)
*/
public class MaxWidth{
public static int maxWidth(int[] X, int[] Y) {
Arrays.sort(X);
package ee.energia.ocppapi.model.entity;
import ee.energia.ocppapi.model.ChargingProfileKind;
import ee.energia.ocppapi.model.ChargingProfilePurpose;
import ee.energia.ocppapi.model.ChargingRateUnitType;
import ee.energia.ocppapi.model.RecurrencyKindType;
import lombok.Data;
import javax.persistence.*;
import java.math.BigDecimal;
package ee.energia.ocppapi.model.entity;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
@Data
@Entity
@Table(name = "\"ocpp-message-V_16-SetChargingProfile-conf\"")
@IdClass(SetChargingProfileConfPK.class)
This file has been truncated, but you can view the full file.
1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF
12tkqA9xSoowkzoERHMWNKsTey55YEBqkv
12ib7dApVFvg82TXKycWBNpN8kFyiAN1dr
1PeizMg76Cf96nUQrYg8xuoZWLQozU5zGW
198aMn6ZYAczwrE5NvNTUMyJ5qkfy4g3Hi
1HLvaTs3zR3oev9ya7Pzp3GB9Gqfg6XYJT
1Kf33BbrJDuAVC91w9ACtRgf6KJrLWSkHV
167ZWTT8n6s4ya8cGjqNNQjDwDGY31vmHg
12dUggmXPYsPVHaHr1DoW5J6bb6gvh4yZq
1JtpgqCf3SSeCeYWEDJjkfYFH7Ruhy4Vp1