Jagadish, K.
  • Longest palindromic string

    Find the longest substring that is also a palindrome.
    Read →
  • Largest number from given integers in array.

    Form the largest number from a set of integers. Sounds easy ?
    Read →
  • Rotating an Array

    Given an array, rotate its elements by the given number of steps.
    Read →
  • Robot running around in circles

    Will this robot take over, or will it keep running around in circles ?
    Read →
  • Fill color

    Remember MS Paint? What did you think of the paint bucket?
    Read →
  • Word pattern

    Are they peas in a pod ?
    Read →
  • Squares of a Sorted Array

    Given an array of sorted integers, return a sorted array of its squares.
    Read →
  • String to integer (atoi)

    Convert a given string to an integer.
    Read →
  • Longest substring without repeating characters

    Find the length of the longest substring without repeating characters.
    Read →
  • Implement a Max/Min Stack

    Implement a stack data structure such that the maximum and minimum elements can be retrieved in *O(1)* time.
    Read →
  • Move zeroes to end

    We want the zeroes at the end
    Read →
  • Find first and last positions of an element in a sorted array

    Given a sorted array of integers, find the first and last positions of given element.
    Read →
  • Minimum Time Visiting All Points

    A simple solution, to find the shortest path between a start and end point while touching all intermediate points.
    Read →
  • Implementing a LRU Cache in Javascript

    A short and simple implementation of a LRU Cache
    Read →
  • Shortest way to form a string

    Check if a string was formed by using subsequences from another.
    Read →
  • Selection sort

    How to perform selection sort using javascript
    Read →
  • Bubblesort

    A short article on how to perform "bubble sort" in Javascript
    Read →
  • Sorting in Javascript

    A collection of articles on performing sorting on an array of items in javascript
    Read →
  • Find all anagrams of a string in another string

    Given 2 strings of varying lengths, find positions of anagrams of shorter string in bigger string
    Read →
  • Median of two sorted arrays

    Given two sorted arrays, find the median.
    Read →