Skip to content

Optimized algorithms using c++ and python, LeetCode && Codewars

Notifications You must be signed in to change notification settings

kevnnty/ds_toolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DS Toolbox

⬆️⬆️ My collection of Structured Algorithms and Data Structures ⬆️⬆️

Description

This repository is a collection of implementations of various data structures and algorithms in different programming languages. It is designed to be a resource for students, programmers, and anyone interested in learning more about these fundamental concepts of computer science.

Features

  • A wide variety of data structures and algorithms, including:

    • Linked lists
    • Stacks
    • Queues
    • Trees
    • Graphs
    • Sorting algorithms
    • Searching algorithms
  • Implementations in multiple programming languages, including:

    • C++
    • Java
    • Python
  • Clear and concise code with detailed comments

  • Well-documented examples

Benefits

  • Learn how to implement and use data structures and algorithms in different programming languages
  • Improve your problem-solving skills
  • Gain a deeper understanding of computer science concepts
  • Prepare for coding interviews

Getting started

To get started, simply clone the repository and explore the code. You can also run the examples to see how the data structures and algorithms work.

Contributing

We welcome contributions to this repository. Please submit pull requests with new implementations, bug fixes, or improvements to the existing code.

License

This repository is licensed under the MIT License.

#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <vector>

using namespace std;

int main() {
  // Create a vector of strings
  vector<string> words = {"Don't", "forget", "to", "star", "and", "share", "it"};

  // Shuffle the vector of strings randomly
  random_shuffle(words.begin(), words.end());

  // Create an iterator to iterate through the vector
  vector<string>::iterator it = words.begin();

  // Continuously output the next word in the vector until reaching the end
  while (it != words.end()) {
    cout << *it << " ";
    it++;
  }

  cout << endl;

  return 0;
}

About

Optimized algorithms using c++ and python, LeetCode && Codewars

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published