-
-
Related: LeetCode 394 - Decode String http://bookshadow.com/weblog/2016/12/11/leetcode-encode-string-with-shortest-length/ Given a non...
-
Find the minimum cost to reach destination using a train - GeeksforGeeks There are N stations on route of a train. The train goes from st...
-
Greedy Algorithms | Set 3 (Huffman Coding) | GeeksforGeeks Huffman coding is a lossless data compression algorithm. The idea is to assign ...
-
Buttercola: Buddy System Given a complete binary tree with nodes of values of either 1 or 0, the following rules always hold: 1. A node...
-
Follow up: LeetCode 471 - Encode String with Shortest Length https://leetcode.com/problems/decode-string/ Given an encoded string, retu...
-
HackerRank: N Puzzle N Puzzle is a sliding blocks game that takes place on a k * k grid with ((k * k) - 1) tiles each numbered from 1 to ...
-
Count the number of possible triangles https://leetcode.com/problems/valid-triangle-number Given an array consists of non-negative integ...
-
Find if given matrix is Toeplitz or not - GeeksforGeeks Given a square matrix, find if it's a Toeplitz matrix or not. A Toeplitz (or d...
-
Maximum product of two non-intersecting paths in a tree - GeeksforGeeks Given an undirected connected tree with N nodes (and N-1 edges), w...