Coding-challenge - Algorithms and Data-structures, problems and solutions in Rust language using cargo-workspaces

Overview

Coding Challenge

LeetCode/Hackerrank e.t.c

Using this as an opportunity to improve my knowledge of rust lang

If you found this repo useful to you, add a star :thumbs-up

Please Note

*If the rust and js cell of a row is empty, it means the solution is present on the title col of that specific row. This is owing to changes in how this table used to be. Updates would be made later to ensure consistency

# Title JS Rust
1 Reverse Bits
2 Binary tree from inorder, postorder
3 Binary tree from preorder, inorder
4 Lowest Common Ancestor
5 Next Pointer (javascript)
6 Sherlock and the Valid string
7 Town Sunset
8 Two Sums
9 Walls and Gates
10 Circular Queue
11 Moving Data Stream
12 Inorder traversal
13 Level Order traversal
14 Lowest Common Ancestor
15 Maximum Depth
16 Path Sum
17 Post order traversal
18 Pre order traversal
19 Priority queue
20 Serialize Deserialize Binary Tree
21 Symmetric tree
22 Doubly linked list
23 Linked Cycle
24 Linked Cycle Position
25 Linked List Palindrome
26 Linked List- nth from last
27 Linked List - Arrange into odd/even
28 Linked List - Remove Linked elem
29 Linked List - Remove nth node from the last
30 Reverse Linked List
31 Number of Islands
32 Walls and Gates - dfs Walls and Gates - dfs
33 Chief Hopper Chief Hopper Chief Hopper
34 Open the Lock - bfs
35 Perfect Squares Perfect Squares
36 Min Stack
37 Valid Parenthes
38 Daily Temperatures
39 Reverse Polish Notation
40 Max Min
41 Number of Islands
42 Jim and the Others Jim and Others Jim and the Others
43 Clone Graph
44 Game Of Thrones 1
45 Grredy Florist Greedy Florist
46 Queue with Stack Queue with Stack Queue with Stack
47 Stack with Queues
48 Decode String
49 Flood Fill Flood Fill
50 01 Matrix Matrix 01 Matrix 01
51 Keys and Rooms Keys and Rooms
52 Permuting Two Arrays Permuting Two Arrays Permuting Two Arrays
53 Mark and Toys Mark and Toys Mark and Toys
54 Two Strings Two Strings Two Strings
55 Making Anagrams Making Anagrams
56 Reverse String (recursion) Reverse String Reverse String
57 Swap Node Pairs Swap Node Pairs
58 Reverse Linked List (Recursion) Reverse Linked List (Recursion)
59 Create Binary Tree from a vector create BT
60 Search BST (Recursion) search BST (Recursion)
61 Pascal's Triangle Pascal's Triangle Pascal's Triangle
62 Fibonacci Fibonacci
63 Climbing Stairs Climbing Stairs Climbing Stairs
64 Binary Tree (Max depth - bfs) Binary Tree (Max depth)
65 Pow(x, n) Pow(x, n) Pow(x, n)
66 Merge Two Sorted Lists Merge Two Sorted Lists
67 Kth Symbol In Grammar Kth Symbol In Grammar
68 Unique Binary Trees II Unique Binary Trees II Unique Binary Trees II πŸ˜‚ πŸ€“
69 Merge Sort Algorithm Merge Sort Merge Sort
70 Sort an Array Sort an Array Sort an Array
71 Quick Sort Quick Sort Quick Sort
72 Validate BST Validate BST Validate BST
73 Search 2D Matrix II Search 2D Matrix II
74 Kth largest element Kth largest element Kth largest element
75 Largest Rectangle in Histogram Largest Rectangle in Histogram
76 N-Queens II n-Queens II
77 Sudoku Player Sudoku Player
78 Combinations Combinations
79 Same Tree Same Tree
80 Generate Parenthesis Generate Parenthesis
81 Binary Tree Level Order traversal Binary Tree Level Order traversal
82 Permutations Permutations
83 Letter Combinations of a Phone Number Letter Combinations of a Phone Number
You might also like...
A library for comparing data structures in Rust, oriented toward testing

Delta: Structural differencing in Rust The delta crate defines the trait Delta, along with a derive macro for auto-generating instances of this trait

A library for comparing data structures in Rust, oriented toward testing

The comparable crate defines the trait [Comparable], along with a derive macro for auto-generating instances of this trait for most data types. Primar

Collection of Data Structures in Rust

cds - Collection of Data Structures !!! UNDER CONSTRUCTION !!! The version v0.0.1 is a crates.io placeholder. License Licensed under either of Apache

Succinct data structures in Rust

sucds: Succinct data structures in Rust sucds contains some succinct data structures written in Rust. Data structures So far, the following data struc

Dade is data definition for Rust structures.

dade dade is data definition for Rust structures. For the easy handle of data, the following will support it. Data validation. Data schema conforms Js

NixEl is a Rust library that turns Nix code into a variety of correct, typed, memory-safe data-structures

πŸ‰ NixEL Lexer, Parser, Abstract Syntax Tree and Concrete Syntax Tree for the Nix Expressions Language. NixEl is a Rust library that turns Nix code in

This repository aims to organize codes related to data structures in Rust. πŸ¦€
This repository aims to organize codes related to data structures in Rust. πŸ¦€

Rust Data Structure A project with the objective of introducing the main concepts about data structure using Rust! Explore the docs and learn Rust Β» R

Obake is a procedural macro for declaring and maintaining versioned data-structures.

Obake is a procedural macro for declaring and maintaining versioned data-structures. The name 'obake' is taken from the Japanese 'γŠεŒ–γ‘ (γŠγ°γ‘)', a class of supernatural beings in Japanese folklore that shapeshift.

Fast, efficient, and robust memory reclamation for concurrent data structures

Seize Fast, efficient, and robust memory reclamation for concurrent data structures. Introduction Concurrent data structures are faced with the proble

Owner
Tolumide Shopein
\n ==> Building Scalable Frontend Architecture Design Systems \n ==> Rust, Typescript, Javascript, Python
Tolumide Shopein
Algorithms and Data Structures of all kinds written in Rust.

Classic Algorithms in Rust This repo contains the implementation of various classic algorithms for educational purposes in Rust. Right now, it is in i

Alexander GonzΓ‘lez 49 Dec 14, 2022
Common data structures and algorithms in Rust

Contest Algorithms in Rust A collection of classic data structures and algorithms, emphasizing usability, beauty and clarity over full generality. As

Aram Ebtekar 3.3k Dec 27, 2022
rust_aads - Rust Algorithms And Data Structures

rust_aads - Rust Algorithms And Data Structures rust_aads is an open repository with algorithms and data structures, used in computer science and comp

stepa 2 Dec 15, 2022
Fastest solutions for various Rust algorithms from challenges

Algs These are the results of going through various challenges and solutions to find the fastest and most concise algorithms. It is structured by data

Jack Clayton 1 Jan 20, 2022
Library containing various Data Structures implemented using Rust.

rust-data-structures Library containing various Data Structures implemented using Rust. Running You can test the library by running cargo test, an exa

c1m50c 1 Jan 6, 2022
Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.

Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.

null 6.5k Dec 31, 2022
Rust data structures and client for the PubChem REST API

pubchem.rs Rust data structures and client for the PubChem REST API. ?? Usage ?? Compound Create a Compound to query the PubChem API for a single comp

Martin Larralde 2 Jan 18, 2022
Rust Persistent Data Structures

Rust Persistent Data Structures Rust Persistent Data Structures provides fully persistent data structures with structural sharing. Setup To use rpds a

Diogo Sousa 883 Dec 31, 2022
A proof of concept implementation of cyclic data structures in stable, safe, Rust.

A proof of concept implementation of cyclic data structures in stable, safe, Rust. This demonstrates the combined power of the static-rc crate and the

null 157 Dec 28, 2022
Rust library for string parsing of basic data structures.

afmt Simple rust library for parsing basic data structures from strings. Usage You can specify string formats to any strucute, via the use of the fmt

Eduard 4 May 8, 2021