Open in app

Sign In

Write

Sign In

prashant kumar
prashant kumar

4 Followers

Home

About

Mar 13, 2021

DNA Mutation Java

There is a DNA Strand having values as A , T , C , G. All combinations are present in the the file. Write a method which takes starting mutation string , ending mutation string and string bank and calculates the minimum mutation distance required. …

Interview Questions

2 min read

Interview Questions

2 min read


Mar 8, 2021

Special Stack with Increment Operation

Leetcode: https://leetcode.com/problems/design-a-stack-with-increment-operation/ Create a simple stack which takes a list of elements. Each element contains a stack operator (push, pop, inc) and a value to either push/pop or two values, n and m, which increment the bottom n values by m. Then print the topmost value of the stack after every operation…

Stack

2 min read

Stack

2 min read


Sep 18, 2020

Dictionary Encoding Java

Dictionary encoding is a loss-less compression technique to compress a list of words. Dictionary encoding works by maintaining a mapping of unique words to their compressed value, and replacing occurrence of the words with the compressed value Here is an example: Input String: “USA,USA,USA,USA,Mexico,Canada,Mexico,Mexico,Mexico,Argentina” Potential Encoder Output String: “USA,Mexico,Canada,Argentina:0,0,0,0,1,2,1,1,1,3”

Dictionary

2 min read

Dictionary

2 min read

prashant kumar

prashant kumar

4 Followers

Software Development Engineer Alexa AI. Sport programmer. http://linkedin.com/in/agprashant5

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech