Giter Site home page Giter Site logo

git-dsa-py's Introduction

Data Structures and Algorithms [Python]

1. Binary Search

  • Search on Simple Sorted Array
  • Search on Reverse Sorted Array
  • Search on Array with unknown order
  • Search for first and last occurence of an element
  • Search for counts of an element in Sorted Array
  • Search for Number of time an Array is Rotated
  • Finding an element in a rotated Sorted Array
  • Searching in a Nearly Rotated Array
  • Finding the Floor of an element in a Sorted Array
  • Ceil of an element in a Sorted Array
  • Search for Next Alphabetical Element
  • To find the position of an element in an infinite sorted Array
  • Search for Index of first 1 in a Binary Sorted Infinite Array
  • Search for Minimum difference element in a Sorte Array
  • Binary Search on Answer Concept
  • Search for the Peak Element in the Array
  • Search for Maximum element in Bitonic Array
  • Search in Row-wise and Column-wise Sorted Array
  • Allocating Minimum Number of Pages

Search on Simple Sorted Array

Q. We have given a simple array of data containing the required values in which we need to search a particular element given by the user and return the index or position of that element.

arr1 = [1,2,3,4,5,6,7,8,9,10]

def search(nums,target):
    // your code goes here

Problem Links :

git-dsa-py's People

Contributors

ackwolver335 avatar

Stargazers

 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.