Coding Recipies

Hi everyone, I am maintaining this blog for sharing knowledge on Algorithms and Data Structures.

7 Feb 2020

Task Scheduler

›
Problem Statement :        Given an input arrays of Tasks           Input: tasks = [A, A, A, B, B, C,  C,  D] and a window of size k = ...
10 comments:

Sliding Window Maxima

›
Problem Statement :          Given an array of size n and window of size k (k < n) , find the maximum element in each contagious array ...
9 comments:
5 Feb 2020

Shell Sort

›
Problem Statement :  Write the code for Shell Sort. Solution :  Shell sort is an extension of Insertion sort where number of jumps of...
6 comments:
24 Jan 2020

Distribute Coins in Binary Tree

›
Problem Statement :  Distribute Coins in Binary Tree Given the root of a binary tree with N nodes, each node in the tree has node.val c...
1 comment:
18 Jan 2020

Infix to Postfix Conversion

›
Problem Statement :  Convert Infix expression to Postfix Expression. Input :   a+b*(c^d-e)^(f+g*h)-i Output:   abcd^e-fgh*+^*+i...
1 comment:
›
Home
View web version

About Me

My photo
Prateek Rathore
View my complete profile
Powered by Blogger.