Code Monkey home page Code Monkey logo

dsa's Introduction

Data Structures and Algorithms

This repository contains all the codes related to Data Structures and Algorithms.

  • All the codes implemented here are written in C, C++ & Python language.
  • The questions have been solved from the excel sheet in the repository

Topics covered till now -

Arrays:

  • Implementation as an Abstract Data Type

  • Insertion

  • Deletion

  • Linear Search & Binary Search

  • Important Questions

    • First Repeating Element
    • Maximum Sum SubArray Array (Kadane's Algorithm)
    • Maximum Sum Circular Subarray
    • Pair Target Sum Problem
    • Smallest Positive Missing Number
    • SubArray with Given Sum
  • 2D Arrays

    • Printing a matrix in spiral form
    • Convert a matrix to it's transpose
    • Sort all the elements of the matrix (row and column wise)
    • Rotate a matrix by 90 degrees in anticlockwise direction

Linked Lists:

  • Creation & Traversal
  • Insertion at - Front, End, Specific Index, After a Specific Node
  • Deletion from - Front, End, Specific Index, Value of Node
  • Circular Linked List - Traversal & Insertion at front

Sorting Techniques:

  • Selection Sort
  • Bubble Sort
  • Insertion Sort

Number Questions:

  • Adding two binary numbers

Bit Manipulation

  • Finding the number of set bits in a positive number
  • Finding the number of bits to be flipped to convert A to B.
  • Check if N is a power of 2
  • Find the position of the only set bit in a number

Recursion

  • Factorial of a number
  • Print Numbers from 1 to N
  • Sorting Array in ascending order
  • Tower Of Hanoi Problem
  • Printing Subsets of a given string (PowerSet)
  • Generating all Balanced Paranthesis for a given number of brackets
  • Josephus problem

Dynamic Programming

  • 0/1 Knapsack using recursion
  • 0/1 Knapsack using recursion+memoization

dsa's People

Contributors

saloniswagata avatar

Watchers

 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.