Git Product home page Git Product logo

assignment-2's Introduction

ASSIGNMENTS-2

Find_sum: Given an Sorted List A[0...N].Find the sum of elements for an input K such that A[i]+A[j] = k Since given array is already in sorted order technique if the sum of elements of first and last index elements is less than increment the start pointer otherwise decrement the end pointer

Remove_duplicates: Remove duplicates from an Unsorted list. First sort the list so that all duplicate elements will be adjacent to each other.Time taken to sort the list is O(nlogn) Next step is to remove all the duplicates in one pass without using another list.The order is preserved and it is in-place algorithm.

Monge_arrays: Given Two lists list1[0..m] and list2[0..n].Find the element for an an input K such that list1[i] + list2[j] = k using Monge array.

assignment-2's People

Contributors

vinothini92 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.