Skip to content

Instantly share code, notes, and snippets.

View puranik3's full-sized avatar
🏠
Working from home

Prashanth Puranik puranik3

🏠
Working from home
View GitHub Profile
@puranik3
puranik3 / leetcode-2958-longest-subarray.java
Last active June 11, 2025 12:01
2958. Length of Longest Subarray With at Most K Frequency
import java.util.HashMap;
class Solution {
public int maxSubarrayLength(int[] nums, int k) {
int N = nums.length;
int left = 0, right = 0, f, x;
int result = 1, cur;
HashMap<Integer, Integer> freq = new HashMap<>();
@puranik3
puranik3 / session-1-March-15-2025.md
Last active June 6, 2025 12:13
Outskill Gen AI Workshop, March 15, 16 2025

Outskill Gen AI Workshop, March 15, 16 2025

  • Notes by Prashanth Puranik

Organizer: Phani Krishna, Outskill
Session 1: Divij Bajaj, Microsoft

  • Gen AI is a type of AI that creates original content - such as test, images, videos - by learning patterns from large datasets
  • Use cases of AI
    • Digital assistants
  • Eg. Siri
<template>
<div class="row">
<div class="col-12">
<h3>
Sessions in this workshop
</h3>
<hr />
</div>
<div
v-if="loading"
@puranik3
puranik3 / QuickSortDemo.java
Last active June 9, 2025 18:26
Quick sort
package quicksort;
import java.util.Arrays;
public class QuickSortDemo {
private static void swap( int[] arr, int p1, int p2 ) {
int temp = arr[p1];
arr[p1] = arr[p2];
arr[p2] = temp;
}