Naveen JettyinNaveen JettyLongest String ChainYou are given an array of words where each word consists of lowercase English letters.2 min read·Jun 15, 2022----
Naveen JettyinNaveen JettyDelete Operation for Two StringsGiven two strings word1 and word2, return the minimum number of steps required to make word1 and word2 the same.1 min read·Jun 14, 2022----
Naveen JettyinNaveen JettyMaximum Erasure ValueYou are given an array of positive integers nums and want to erase a subarray containing unique elements. The score you get by erasing the…1 min read·Jun 14, 2022----
Naveen JettyinNaveen JettyMaximum profile for Salesman traveling between 2 citiesYou are a traveling salesperson who travels back and forth between two cities (A and B). You are given a pair of arrays (revA and revB)…1 min read·Nov 12, 2020----
Naveen JettyinNaveen JettyRemove Zero Sum Consecutive Nodes from Linked ListGiven the head of a linked list, we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences.1 min read·Oct 14, 2020----
Naveen JettyinNaveen JettyReturn List of Reverse Levels of Binary TreeGiven a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to…1 min read·May 24, 2017----
Naveen JettyinNaveen JettyDiameter of the binary treeGiven a binary tree, you need to compute the length of the diameter of the tree. The diameter of a binary tree is the length of the longest…1 min read·Mar 23, 2017----
Naveen JettyinNaveen JettySingle Element in a Sorted ArrayGiven a sorted array consisting of only integers where every element appears twice except for one element which appears once. Find this…1 min read·Mar 22, 2017--3--3
Naveen JettyinNaveen JettyStack Implementation using Linked ListI was trying to implement a stack. As we all know that a stack is a Last In First Out (LIFO) implementation. A push inserts the element in…3 min read·Feb 12, 2017----
Naveen JettyinNaveen JettyBinary GCDHere is my implementation of the Binary GCD iterative approach1 min read·Feb 12, 2017----