Skip to content

Instantly share code, notes, and snippets.

View CoderJay06's full-sized avatar

Jay Cruz CoderJay06

View GitHub Profile
@CoderJay06
CoderJay06 / LongestSubstringKDistinct.java
Created June 2, 2021 12:18 — forked from Schachte/LongestSubstringKDistinct.java
Sliding Window Maximum Sum Subarray
import java.util.*;
class LongestSubstringKDistinct {
public static int findLength(String str, int k) {
int windowStart = 0, maxLength = 0;
Map<Character, Integer> charFrequencyMap = new HashMap<>();
for (int windowEnd = 0; windowEnd < str.length(); windowEnd++) {
char rightChar = str.charAt(windowEnd);
charFrequencyMap.put(rightChar, charFrequencyMap.getOrDefault(rightChar, 0) + 1);
@CoderJay06
CoderJay06 / index.html
Created November 10, 2021 21:12
Zombie Carousel
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="carousel">
<div class="carousel-item carousel-item-visible">
<img src="https://images.unsplash.com/photo-1537211261771-e525b9e4049b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&h=450&q=80" alt="Squirrel zombie" />
</div>
<div class="carousel-item">
@CoderJay06
CoderJay06 / index.html
Created November 12, 2021 00:41
Zombie Carousel
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="carousel">
<div class="carousel-item carousel-item-visible">
<img src="https://images.unsplash.com/photo-1537211261771-e525b9e4049b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&h=450&q=80" alt="Squirrel zombie" />
</div>
<div class="carousel-item">
@CoderJay06
CoderJay06 / index.html
Last active November 12, 2021 00:43
Zombie Carousel
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="carousel">
<div class="carousel-item carousel-item-visible">
<img src="https://images.unsplash.com/photo-1537211261771-e525b9e4049b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=600&h=450&q=80" alt="Squirrel zombie" />
</div>
<div class="carousel-item">
@CoderJay06
CoderJay06 / dark-mode-toggle.markdown
Created November 19, 2021 04:21
dark mode toggle