{{ message }}

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

# Vinay Puranik vinaypuranik

💭
I may be slow to respond.
Last active Aug 7, 2019
View gist:0786a61d4c3beb1e3407388723fbc02f
 import java.util.*; class Solution{ public int solution(String S) { List sentences = new ArrayList(); List dot = getLocations(S, "."); List question = getLocations(S, "?"); List exclaimation = getLocations(S, "!");
Created Aug 8, 2019
Checkwriter for Number to Euros represenatation.
View gist:4b7867856ea75c1deede4630f770899d
 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) {
Last active Aug 8, 2019
Checkwriter for Number to Euros representation.
View CheckWriter.java
 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) {
Last active May 8, 2020
MaxWidth of a vertical path
View MaxWidth.java
 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);
Last active Jul 23, 2020
View SetChargingProfileReq
 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;
Created Jul 23, 2020
View gist:3762f0a1fcdfab7ded18ed6f6681b1a9
 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)