Code Monkey home page Code Monkey logo

swift's Introduction

The Algorithms - Swift

All algorithms implemented in Swift (for education)

These implementations are for learning purposes. They may be less efficient than the implementations in the Swift standard library.

Community Channel

We're on Gitter! Please join us.

List of Algorithms

See our directory.

swift's People

Contributors

5sw avatar anantcodes avatar anupkumarpanwar avatar ayaanlehashi11 avatar azolinmf avatar carloshmartins avatar codersanjeev avatar dogra25130 avatar gustavotiecker avatar michalnowak061 avatar nktssk avatar panquesito7 avatar samadrn avatar tejas-nanaware avatar tiagomaial avatar vbrazo avatar wiktorwojcik112 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swift's Issues

[Suggestion] Add Stack Algorithms for Swift repo

Hello,

After looking at the queue.swift code, I request to add a stack algorithm.
I will make it based on queue.swift to make it an appropriate format.

Can I work on this code?

I will update it soon with PR.

Implement DFS and BFS

These simple algorithms are not yet implemented in this repo. Would be useful if we can have these. And I would love to add them!

Implementation of Merge Sort

Good evening Sir, I would like to the following sorting algorithm into this repository

  • Merge Sort

Do you think it will be useful? I think it will be helpful to have Merge Sort algorithm added as it's one of the most efficient and stable sorting algorithm. Thank you for your time and consideration, I look forward to hearing from you

Adopt SPM

Hello, everyone.

I've started my studies on algorithms, and I found this project pretty interesting and with lots of potential. I've already opened my first PR, and, while doing it, I've noticed we can't open the whole repository on Xcode (12.5). In order to test the code I was writing, I needed to develop it in a separate project, so I could then migrate it to this repository. I believe we can solve this issue by turning this repository into a Swift package. This would have the following advantages:

  • Development right into the repository
  • Possibility to add unit tests, covering the implementations
  • Possibility for others to explore and learn by integrating it into existing projects

What do you think about it?

Implementation of Search algorithms

The following algorithms can be implemented:

  1. Linear Search (Definition)
  2. Binary Search (Definition)

Test array input: [10, 119, 13, 24, 53, 17, 31, 7, 19, 627, 47, 163, 37, 611, 29, 43, 51, 41, 32].
Test number input: Any suitable number can be provided here
Output: The index of the number if present

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.