Code Monkey home page Code Monkey logo

competitive-coding's Introduction

Competitive-coding

Array

  1. Reverse of an array or string
    Reverse of an array or string using recursion

  2. Maximum and minimum of an array using minimum number of comparisons

  3. K’th Smallest/Largest Element using STL

  4. Sort an array of 0s, 1s and 2s

  5. Union of two arrays Intersection of two arrays

  6. Cyclically rotate an array by k times

  7. Kadane's Algorithm (Largest Sum Contiguous Subarray also store indices)

  8. Minimise the heights

  9. Minimum number of jumps to reach end (O(n) solution)

  10. Find the Duplicate Number

  11. Merge two sorted arrays

  12. Subarray of size k with given sum (Sliding window protocol)

  13. Kadane's Algorithm (Largest Sum Contiguous Subarray also store indices)

  14. Merge Intervals

  15. Next Permutation

  1. Best Time to Buy and Sell stock (valley peak approach)

  2. Count pairs with given sum

  3. Common elements in 3 sorted rrays

  4. Rearrange array in alternating positive & negative items with O(1) extra space

  5. Subarray with 0 sum

  1. Maximum Product Subarray

  2. Longest consecutive subsequence

  1. Find all elements that appear more than n/k times
  1. Subset or not

  2. Triplet sum in array

  3. Trapping Rain Water

  4. Chocolate Distribution Problem

  5. Find subarray with given sum with negatives allowed

  1. Three way partitioning of an array around a given value (Dutch National Flag based QuickSort)

  2. Minimum swaps required bring elements less or equal to K together

  3. Find minimum number of merge operations to make an array palindrome

  4. Median of 2 sorted arrays of equal size

  5. Median of 2 sorted arrays of different size

  6. Move all negative numbers to beginning and positive to end

Matrix

  1. Spiral traversal on a Matrix

  2. Search an element in a matrix

  3. Find median in a row wise sorted matrix

  4. Find row with maximum no. of 1's

  5. Print elements in sorted order using row-column wise sorted matrix

  1. Find a specific pair in matrix

  2. Rotate matrix by 90 degrees

  3. Kth smallest element in a row-column wise sorted matrix

  4. Common elements in all rows of a given matrix

String

  1. Reverse of an array or string
    Reverse of an array or string using recursion

  2. Check if given string is palindrome or not

Sheet

Unordered Map

  1. Maximum Repeating Number

  2. Count pairs with given sum

  3. Count More than n/k Occurences

competitive-coding's People

Contributors

muskan278 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.