Archive of category 'C++'
-
Nov 11, 2018 •
algorithms,
C++,
greedy,
Kruskal,
Minimum Spanning Tree
Cost-efficient Water Connections →
-
Oct 10, 2018 •
algorithms,
C++,
greedy
Pick the right courier ... →
-
Oct 1, 2018 •
algorithms,
C++,
greedy
Greedy algorithms vs Tik-Tok teenagers →
-
Sep 24, 2018 •
algorithms,
data structures,
C++,
segment tree
Updates in a Segment Tree →
-
Sep 12, 2018 •
algorithms,
data structures,
C++,
segment tree
Counting cokes faster for a different reward ... →
-
Sep 2, 2018 •
algorithms,
data structures,
C++
Counting cokes for a different reward ... →
-
Aug 24, 2018 •
algorithms,
C++,
dynamic programming
Sharing toys again →
-
Aug 20, 2018 •
algorithms,
C++,
recursion
Sharing toys happily →
-
Jul 19, 2018 •
algorithms,
dynamic programming,
lcs,
C++
String subsequences - Extracting the LCS →
-
Jul 17, 2018 •
algorithms,
dynamic programming,
lcs,
C++
String subsequences - Bottom-up Dynamic Programming →
-
Jul 13, 2018 •
algorithms,
recursion,
memoization,
lcs,
C++
String subsequences - memoization →
-
Jul 11, 2018 •
algorithms,
recursion,
lcs,
C++
String subsequences - Basics →
-
Jul 9, 2018 •
algorithms,
dynamic programming,
knapsack,
C++
Generating Optimal Value from Shipping →
-
Jul 6, 2018 •
algorithms,
memoization,
knapsack,
C++
Making value from shipping products efficiently →
-
Jul 3, 2018 •
algorithms,
recursion,
knapsack,
C++
Making value from shipping products →
-
Jun 29, 2018 •
data structures,
arrays,
algorithms,
C++
Computing elements that result in maximum product efficiently →
-
Jun 25, 2018 •
data structures,
arrays,
algorithms,
C++
Computing elements that result in maximum product →
-
Jun 20, 2018 •
data structures,
arrays,
algorithms,
C++
Computing maximum length subarray that sums to 0 →
-
Jun 15, 2018 •
data structures,
arrays,
algorithms,
C++
Finding all subarrays that sum to 0 →
-
Jun 10, 2018 •
data structures,
arrays,
algorithms,
C++
Finding the subarray leading to zero sum, faster →
-
Jun 5, 2018 •
data structures,
arrays,
algorithms,
C++
Finding the subarray leading to zero sum →
-
Jun 4, 2018 •
algorithms,
recursion,
C++,
power set
Computing subsets in the presence of duplicates →
-
Jun 3, 2018 •
algorithms,
recursion,
C++,
power set
Computing subsets of a set →
-
May 7, 2018 •
algorithms,
recursion,
C++
Do you have some change? →
-
May 6, 2018 •
algorithms,
dynamic programming,
C++
Climbing stairs and remembering the past... →
-
May 5, 2018 •
algorithms,
recursion,
C++
Climbing stairs recursively →
-
Mar 4, 2018 •
algorithms,
bitwise operations,
bit-vectors,
C++
Isolating right-most set bit in a bit-vector →
-
Mar 3, 2018 •
algorithms,
bitwise operations,
bit-vectors,
C++
How to find out the position of the right-most set bit in a bit-vector? →
-
Mar 2, 2018 •
algorithms,
bitwise operations,
bit-vectors,
C++
Checking if a kth bit in a bit-vector is set →
-
Mar 1, 2018 •
algorithms,
bitwise operations,
bit-vectors,
C++
Of bits, sets and xors... →
-
Feb 17, 2018 •
algorithms,
data structures,
C++
Efficient point updates in a Fenwick Tree →
-
Feb 9, 2018 •
algorithms,
data structures,
C++
Faster range queries using Fenwick Tree →
-
Feb 5, 2018 •
algorithms,
data structures,
C++
Counting Cokes faster ... →
-
Feb 1, 2018 •
algorithms,
data structures,
C++
Counting Cokes ... →
-
Oct 9, 2017 •
algorithms,
C++,
recursion
Computing GCD (greatest common divisor) of two given integers →
-
Oct 7, 2017 •
algorithms,
C++,
recursion
Computing permutations (with duplicates) - divide and conquer →
-
Oct 6, 2017 •
algorithms,
C++,
recursion
Computing permutations - divide and conquer →
-
Oct 4, 2017 •
algorithms,
C++
Computing the closest pair of points - Naïve approach →
-
Oct 3, 2017 •
algorithms,
C++
Computing the number of inversions in an array - using divide and conquer approach →
-
Oct 2, 2017 •
algorithms,
C++
Computing the number of inversions in an array - naïve method →
-
Oct 1, 2017 •
algorithms,
C++
Computing sub-array sum given a set of queries on sub-array indices - Mo's Algorithm →
-
Sep 30, 2017 •
algorithms,
C++
Computing sub-array sum given a set of queries on sub-array indices →
-
Sep 5, 2017 •
algorithms,
C++
Computing many primes... →
-
Sep 4, 2017 •
algorithms,
C++
Prime or not? →
-
Sep 3, 2017 •
algorithms,
C++
Counting the number of rotations of a sorted array →
-
Sep 2, 2017 •
algorithms,
C++
Maximum pairwise product →
-
Aug 23, 2017 •
algorithms,
C++
Computing factors of a number →
-
Aug 22, 2017 •
algorithms,
C++
Computing maximum subarray sum →