Collection of some cool algorithms for everyday use :)

  1. Dutch National Flag Algorithm
  2. Kadane’s Algorithm
  3. Algorithm to move -ve numbers to one side of the array
  4. Palindromic Array

This algorithm can be implemented to sort an array with 3 unique elements in linear time.

1.1 Algorithm

  • 3 Pointers are used…

Vinsmoked

kaizoku oni ore wa naru :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store