Naveen JettyinNaveen JettyLongest String ChainYou are given an array of words where each word consists of lowercase English letters.Jun 15, 2022Jun 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.Jun 14, 2022Jun 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…Jun 14, 2022Jun 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)…Nov 12, 2020Nov 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.Oct 14, 2020Oct 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…May 24, 2017May 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…Mar 23, 2017Mar 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…Mar 22, 20173Mar 22, 20173
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…Feb 12, 2017Feb 12, 2017
Naveen JettyinNaveen JettyBinary GCDHere is my implementation of the Binary GCD iterative approachFeb 12, 2017Feb 12, 2017