Skip to content

Instantly share code, notes, and snippets.

View abhinpai's full-sized avatar
🎯
Focusing

Abhin Pai abhinpai

🎯
Focusing
View GitHub Profile
@abhinpai
abhinpai / kindergartenAdventure_studycodeA.cs
Created September 4, 2017 15:46 — forked from jianminchen/kindergartenAdventure_studycodeA.cs
HackerRank university codesprint - kindergarten adventure - study code - score 30 (Maximum score 30) - segment tree
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
int n = int.Parse(Console.ReadLine());
int[] A = Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);
int[] w = new int[n];