An open API service indexing awesome lists of open source software.

https://github.com/jusexton/rust-challenges

Programming challenges written in the Rust programming language
https://github.com/jusexton/rust-challenges

programming-challenges rust

Last synced: 12 months ago
JSON representation

Programming challenges written in the Rust programming language

Awesome Lists containing this project

README

          

# Rust Programming Challenges

[![build](https://github.com/jusexton/rust-challenges/actions/workflows/build.yml/badge.svg)](https://github.com/jusexton/rust-challenges/actions/workflows/build.yml)

Programming challenges written in the Rust programming language

Visit https://github.com/jusexton/all-challenges if you're interested in seeing
programming challenges completed in other languages.

## Completed Programming Challenges

- [Code Wars](#code-wars)
- [r/dailyprogrammer](#rdailyprogrammer)
- [LeetCode](#leetcode)
- [Other](#other)

### Code Wars

#### Kata 4

- [Pyramid Slide](https://www.codewars.com/kata/551f23362ff852e2ab000037)

#### Kata 5

- [Sum of Pairs](https://www.codewars.com/kata/54d81488b981293527000c8f)
- [Are They Same](https://www.codewars.com/kata/550498447451fbbd7600041c)
- [Josephus Survivor](https://www.codewars.com/kata/555624b601231dc7a400017a)
- [Perimeter of Squares in Rectangles](https://www.codewars.com/kata/559a28007caad2ac4e000083)
- [Diamond](https://www.codewars.com/kata/5503013e34137eeeaa001648)
- [Fibonacci Product](https://www.codewars.com/kata/5541f58a944b85ce6d00006a)
- [Valid Parentheses](https://www.codewars.com/kata/52774a314c2333f0a7000688)
- [Alphanumeric](https://www.codewars.com/kata/526dbd6c8c0eb53254000110)
- [Lazy Repeater](https://www.codewars.com/kata/51fc3beb41ecc97ee20000c3)

#### Kata 6

- [Add Without Operator](https://www.codewars.com/kata/5a9c35e9ba1bb5c54a0001ac)
- [Frequency Sort](https://www.codewars.com/kata/5a8d2bf60025e9163c0000bc)
- [Dead Fish Parse](https://www.codewars.com/kata/51e0007c1f9378fa810002a9)
- [Pascal Case](https://www.codewars.com/kata/587731fda577b3d1b0001196)
- [New Cashier Does Not Know Space or Shift](https://www.codewars.com/kata/5d23d89906f92a00267bb83d)
- [Multiplication Table](https://www.codewars.com/kata/534d2f5b5371ecf8d2000a08)
- [Nearest Prime](https://www.codewars.com/kata/5a946d9fba1bb5135100007c)
- [NATO](https://www.codewars.com/kata/586538146b56991861000293)
- [EsoLang: MiniBitMove](https://www.codewars.com/kata/587c0138110b20624e000253)
- [Ease the Stock Market](https://www.codewars.com/kata/54de3257f565801d96001200)
- [Binaries](https://www.codewars.com/kata/5d98b6b38b0f6c001a461198)
- [Max Stock Profit](https://www.codewars.com/kata/597ef546ee48603f7a000057)
- [Buying a Car](https://www.codewars.com/kata/554a44516729e4d80b000012)
- [Spinning Words](https://www.codewars.com/kata/5264d2b162488dc400000001)
- [Camel Case](https://www.codewars.com/kata/517abf86da9663f1d2000003)
- [Count Characters](https://www.codewars.com/kata/52efefcbcdf57161d4000091)
- [Position Average](https://www.codewars.com/kata/59f4a0acbee84576800000af)
- [Parse Bank Account Number](https://www.codewars.com/kata/597eeb0136f4ae84f9000001)
- [Sum Digits Raised to Consecutive Powers](https://www.codewars.com/kata/5626b561280a42ecc50000d1)

#### Kata 7

- [Recursion 101](https://www.codewars.com/kata/5b752a42b11814b09c00005d)
- [Build Square](https://www.codewars.com/kata/59a96d71dbe3b06c0200009c)
- [Sort Numbers](https://www.codewars.com/kata/5174a4c0f2769dd8b1000003)
- [Automorphic](https://www.codewars.com/kata/5a58d889880385c2f40000aa)
- [Coin Combinations](https://www.codewars.com/kata/564d0490e96393fc5c000029)
- [Nth Power](https://www.codewars.com/kata/57d814e4950d8489720008db)
- [Valid Spacing](https://www.codewars.com/kata/5f77d62851f6bc0033616bd8)
- [Doubleton](https://www.codewars.com/kata/604287495a72ae00131685c7)
- [Duplicate Words](https://www.codewars.com/kata/5b39e3772ae7545f650000fc)
- [GPS](https://www.codewars.com/kata/56484848ba95170a8000004d)
- [All Inclusive](https://www.codewars.com/kata/5700c9acc1555755be00027e)
- [Cats and Shelves](https://www.codewars.com/kata/62c93765cef6f10030dfa92b)
- [People on the Bus](https://www.codewars.com/kata/5648b12ce68d9daa6b000099)

#### Kata 8

- [The Feast of Many Beasts](https://www.codewars.com/kata/5aa736a455f906981800360d)
- [First Non-Consecutive](https://www.codewars.com/kata/58f8a3a27a5c28d92e000144)
- [Repeating String](https://www.codewars.com/kata/57a0e5c372292dd76d000d7e)
- [Remove Whitespace](https://www.codewars.com/kata/57eae20f5500ad98e50002c5)
- [Multiplication Table](https://www.codewars.com/kata/5a2fd38b55519ed98f0000ce)
- [Alternating Case](https://www.codewars.com/kata/56efc695740d30f963000557)
- [Summation](https://www.codewars.com/kata/55d24f55d7dd296eb9000030)

### r/dailyprogrammer

#### Easy

- [Letter Value Sum](https://www.reddit.com/r/dailyprogrammer/comments/onfehl/20210719_challenge_399_easy_letter_value_sum/)

### LeetCode

#### Easy

- [Fibonacci](https://leetcode.com/problems/fibonacci-number)
- [Perfect Square](https://leetcode.com/problems/valid-perfect-square/)
- [Third Maximum Number](https://leetcode.com/problems/third-maximum-number/)
- [Hamming Distance](https://leetcode.com/problems/hamming-distance)
- [Build an Array with Stack Operations](https://leetcode.com/problems/build-an-array-with-stack-operations/)
- [Second Largest Digit](https://leetcode.com/problems/second-largest-digit-in-a-string)
- [Counting Sheep](https://www.codewars.com/kata/54edbc7200b811e956000556)
- [Robot Returns to Origin](https://leetcode.com/problems/robot-return-to-origin)
- [Consistent Strings](https://leetcode.com/problems/count-the-number-of-consistent-strings)
- [Two Sum](https://leetcode.com/problems/two-sum/)
- [Merge Two Sorted Lists](https://leetcode.com/problems/merge-two-sorted-lists/)
- [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock)
- [Plus One](https://leetcode.com/problems/plus-one/)
- [Climbing Stairs](https://leetcode.com/problems/climbing-stairs/)
- [Largest Odd Number](https://leetcode.com/problems/largest-odd-number-in-string/)
- [Number of Different Integers](https://leetcode.com/problems/number-of-different-integers-in-a-string)
- [Largest Substring Between Two Equal Characters](https://leetcode.com/problems/largest-substring-between-two-equal-characters)
- [Alike Halves](https://leetcode.com/problems/determine-if-string-halves-are-alike)
- [Unique Number of Occurrences](https://leetcode.com/problems/unique-number-of-occurrences)
- [Minimum Common Value](https://leetcode.com/problems/minimum-common-value)
- [Sort by Number of Bits](https://leetcode.com/problems/sort-integers-by-the-number-of-1-bits)
- [Make the String Great](https://leetcode.com/problems/make-the-string-great/)
- [Excel Column Number](https://leetcode.com/problems/excel-sheet-column-number/)
- [Intersection of Two Arrays](https://leetcode.com/problems/intersection-of-two-arrays-ii)
- [X of a kind in a deck of cards](https://leetcode.com/problems/x-of-a-kind-in-a-deck-of-cards/)
- [Remove From Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)
- [Sort the People](https://leetcode.com/problems/sort-the-people)
- [Max Repeating Substring](https://leetcode.com/problems/maximum-repeating-substring/)
- [Sort by Increasing Frequency](https://leetcode.com/problems/sort-array-by-increasing-frequency)
- [Maximum Odd Binary Number](https://leetcode.com/problems/maximum-odd-binary-number)
- [Maximum Count of Positive or Negative Integer](https://leetcode.com/problems/maximum-count-of-positive-integer-and-negative-integer)
- [Alternating Digit Sum](https://leetcode.com/problems/alternating-digit-sum/)
- [Separate Digits](https://leetcode.com/problems/separate-the-digits-in-an-array)
- [Shift Grid](https://leetcode.com/problems/shift-2d-grid)
- [Subtract Digit Product From Digit Sum](https://leetcode.com/problems/subtract-the-product-and-sum-of-digits-of-an-integer/)
- [Number of Senior Citizens](https://leetcode.com/problems/number-of-senior-citizens)
- [Kth Distinct String](https://leetcode.com/problems/kth-distinct-string-in-an-array)
- [Kth Largest in Stream](https://leetcode.com/problems/kth-largest-element-in-a-stream)
- [Length of Last Word](https://leetcode.com/problems/length-of-last-word)
- [Isomorphic Strings](https://leetcode.com/problems/isomorphic-strings)
- [Minimum Bit Flips](https://leetcode.com/problems/minimum-bit-flips-to-convert-number)
- [Replace All Digits With Characters](https://leetcode.com/problems/replace-all-digits-with-characters)
- [Sorting the Sentence](https://leetcode.com/problems/sorting-the-sentence/)
- [Positions of Large Groups](https://leetcode.com/problems/positions-of-large-groups)
- [Backspace Compare](https://leetcode.com/problems/backspace-string-compare/)
- [Uncommon Words from Two Sentences](https://leetcode.com/problems/uncommon-words-from-two-sentences)
- [Rank Transform Array](https://leetcode.com/problems/rank-transform-of-an-array)
- [Minimum String Length After Removing Substrings](https://leetcode.com/problems/minimum-string-length-after-removing-substrings)
- [Make Fancy String](https://leetcode.com/problems/delete-characters-to-make-fancy-string)
- [Common Characters](https://leetcode.com/problems/find-common-characters)
- [Prime Number of Set Bits in Binary Representation](https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/)
- [Make Square With Same Color](https://leetcode.com/problems/make-a-square-with-the-same-color/)
- [Find Integer Add to Array](https://leetcode.com/problems/find-the-integer-added-to-array-i)
- [Distance Value Between Two Arrays](https://leetcode.com/problems/find-the-distance-value-between-two-arrays/)
- [Find the Difference](https://leetcode.com/problems/find-the-difference)
- [Minimum Operations to Make Array Increasing](https://leetcode.com/problems/minimum-operations-to-make-the-array-increasing/)
- [Single Number](https://leetcode.com/problems/single-number/)
- [Invert Binary Tree](https://leetcode.com/problems/invert-binary-tree/)
- [Double Exists](https://leetcode.com/problems/check-if-n-and-its-double-exist)
- [Word Occurs as Prefix in Sentence](https://leetcode.com/problems/check-if-a-word-occurs-as-a-prefix-of-any-word-in-a-sentence)
- [Parking System](https://leetcode.com/problems/design-parking-system)
- [Maximum Number of String Pairs](https://leetcode.com/problems/find-maximum-number-of-string-pairs)
- [Take Gifts from the Richest Pile](https://leetcode.com/problems/take-gifts-from-the-richest-pile)
- [Array State After K Multiplications](https://leetcode.com/problems/final-array-state-after-k-multiplication-operations-i)
- [Final Value of Variable After Operations](https://leetcode.com/problems/final-value-of-variable-after-performing-operations/)
- [Substring With Distinct Characters](https://leetcode.com/problems/substrings-of-size-three-with-distinct-characters/)
- [Remove Element](https://leetcode.com/problems/remove-element)
- [Majority Element](https://leetcode.com/problems/majority-element)
- [First Occurance](https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string)
- [Is Subsequence](https://leetcode.com/problems/is-subsequence)
- [Final Prices After Discounts](https://leetcode.com/problems/final-prices-with-a-special-discount-in-a-shop)
- [Valid Palindrome](https://leetcode.com/problems/valid-palindrome)
- [Roman to Integer](https://leetcode.com/problems/roman-to-integer)
- [Binary Search](https://leetcode.com/problems/binary-search)
- [Binary Search Insert](https://leetcode.com/problems/search-insert-position)
- [Find Smallest Letter Greater than Target](https://leetcode.com/problems/find-smallest-letter-greater-than-target)
- [Count Negative Numbers](https://leetcode.com/problems/count-negative-numbers-in-a-sorted-matrix)
- [Guess Number](https://leetcode.com/problems/guess-number-higher-or-lower/)
- [Ransom Note](https://leetcode.com/problems/ransom-note)
- [Word Pattern](https://leetcode.com/problems/word-pattern)
- [Valid Anagram](https://leetcode.com/problems/valid-anagram)
- [Happy Number](https://leetcode.com/problems/happy-number)
- [Valid Parentheses](https://leetcode.com/problems/valid-parentheses)
- [Contains Duplicate II](https://leetcode.com/problems/contains-duplicate-ii)
- [Summary Ranges](https://leetcode.com/problems/summary-ranges)
- [Reverse Vowels of a String](https://leetcode.com/problems/reverse-vowels-of-a-string)
- [Minimum Recolors to Get K Consecutive Black Blocks](https://leetcode.com/problems/minimum-recolors-to-get-k-consecutive-black-blocks)
- [Minimum Operations to Make Array Distinct](https://leetcode.com/problems/minimum-number-of-operations-to-make-elements-in-array-distinct)

#### Medium

- [The Largest Number](https://leetcode.com/problems/largest-number/)
- [Authentication Manager](https://leetcode.com/problems/design-authentication-manager/)
- [Best Time to Buy and Sell Stock](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii)
- [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/)
- [Kth Largest Element](https://leetcode.com/problems/kth-largest-element-in-an-array/)
- [Rearrange Elements by Sign](https://leetcode.com/problems/rearrange-array-elements-by-sign/)
- [Lonely Numbers](https://leetcode.com/problems/find-all-lonely-numbers-in-the-array/)
- [Design Bitset](https://leetcode.com/problems/design-bitset)
- [Minimum Rounds](https://leetcode.com/problems/minimum-rounds-to-complete-all-tasks)
- [Minimum Steps to Anagram](https://leetcode.com/problems/minimum-number-of-steps-to-make-two-strings-anagram)
- [Zero or One Losses](https://leetcode.com/problems/find-players-with-zero-or-one-losses)
- [Randomized Set](https://leetcode.com/problems/insert-delete-getrandom-o1)
- [Remove Occurrences](https://leetcode.com/problems/remove-all-occurrences-of-a-substring)
- [Divide Array Into Arrays With Max Difference](https://leetcode.com/problems/divide-array-into-arrays-with-max-difference)
- [Remove Minimum to Make Valid Parentheses](https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses)
- [Sum Root to Leaf](https://leetcode.com/problems/sum-root-to-leaf-numbers)
- [Repeated DNA Sequence](https://leetcode.com/problems/repeated-dna-sequences/)
- [Rotate Array](https://leetcode.com/problems/rotate-array/)
- [Sort Colors](https://leetcode.com/problems/sort-colors)
- [Rotate Digits](https://leetcode.com/problems/rotated-digits)
- [Sort Jumbled Numbers](https://leetcode.com/problems/sort-the-jumbled-numbers)
- [Custom Sort String](https://leetcode.com/problems/custom-sort-string)
- [Product of Array Except Self](https://leetcode.com/problems/product-of-array-except-self)
- [Minimum Number of Operations to Make Array Empty](https://leetcode.com/problems/minimum-number-of-operations-to-make-array-empty)
- [Next Beautiful Number](https://leetcode.com/problems/next-greater-numerically-balanced-number)
- [Valid Parenthesis](https://leetcode.com/problems/valid-parenthesis-string)
- [XOR Queries of Sub Array](https://leetcode.com/problems/xor-queries-of-a-subarray)
- [Minimum Time Difference](https://leetcode.com/problems/minimum-time-difference)
- [Maximum Product](https://leetcode.com/problems/maximum-product-after-k-increments)
- [Custom Stack](https://leetcode.com/problems/design-a-stack-with-increment-operation)
- [Boats to Save People](https://leetcode.com/problems/boats-to-save-people)
- [Minimum Number of Swaps to Balance String](https://leetcode.com/problems/minimum-number-of-swaps-to-make-the-string-balanced)
- [Gas Stations](https://leetcode.com/problems/gas-station/)
- [Separate Black and White Balls](https://leetcode.com/problems/separate-black-and-white-balls)
- [Maximum Sum of Hourglass](https://leetcode.com/problems/maximum-sum-of-an-hourglass/)
- [String Compression](https://leetcode.com/problems/string-compression-iii)
- [Find If Array Can Be Sorted](https://leetcode.com/problems/find-if-array-can-be-sorted)
- [Maximum XOR Query](https://leetcode.com/problems/maximum-xor-for-each-query)
- [Minimum Array End](https://leetcode.com/problems/minimum-array-end)
- [Partition Labels](https://leetcode.com/problems/partition-labels/)
- [Shortest SubArray With Or At Least K II](https://leetcode.com/problems/shortest-subarray-with-or-at-least-k-ii)
- [Range Sum Query](https://leetcode.com/problems/range-sum-query-mutable/)
- [Prime Subtraction](https://leetcode.com/problems/prime-subtraction-operation)
- [Duplicate File in System](https://leetcode.com/problems/find-duplicate-file-in-system)
- [Most Beautiful Item for Each Query](https://leetcode.com/problems/most-beautiful-item-for-each-query)
- [Count Number of Fair Pairs](https://leetcode.com/problems/count-the-number-of-fair-pairs)
- [Sum of Square Numbers](https://leetcode.com/problems/sum-of-square-numbers)
- [Minimized Maximum of Products Distributed to Any Store](https://leetcode.com/problems/minimized-maximum-of-products-distributed-to-any-store)
- [Remove K Digits](https://leetcode.com/problems/remove-k-digits)
- [Range Frequency Queries](https://leetcode.com/problems/range-frequency-queries)
- [Find the Power of K Size Sub-Arrays](https://leetcode.com/problems/find-the-power-of-k-size-subarrays-i)
- [Added K Diff Pairs in Array](https://leetcode.com/problems/k-diff-pairs-in-an-array)
- [Maximum Sum of Distinct SubArray](https://leetcode.com/problems/maximum-sum-of-distinct-subarrays-with-length-k)
- [Bitwise Or Trailing Zeroes](https://leetcode.com/problems/check-if-bitwise-or-has-trailing-zeros/)
- [Cinema Seat Allocation](https://leetcode.com/problems/cinema-seat-allocation)
- [Take K Characters From Left and Right](https://leetcode.com/problems/take-k-of-each-character-from-left-and-right)
- [Unguarded Cells](https://leetcode.com/problems/count-unguarded-cells-in-the-grid)
- [Rotate the Box](https://leetcode.com/problems/rotating-the-box)
- [Find Champion II](https://leetcode.com/problems/find-champion-ii/)
- [Single Number II](https://leetcode.com/problems/find-champion-ii/)
- [Longest String](https://leetcode.com/problems/construct-the-longest-new-string/)
- [Adding Spaces](https://leetcode.com/problems/adding-spaces-to-a-string)
- [Subsequence Using Cyclic Increments](https://leetcode.com/problems/make-string-a-subsequence-using-cyclic-increments)
- [Move Pieces to Obtain String](https://leetcode.com/problems/move-pieces-to-obtain-a-string)
- [Maximum Number of Integer from Range](https://leetcode.com/problems/maximum-number-of-integers-to-choose-from-a-range-i)
- [Minimum Limit of Balls in a Bag](https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag)
- [Two Best Non-Overlapping Events](https://leetcode.com/problems/two-best-non-overlapping-events)
- [Find Score of Array After Marking](https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements)
- [Merge Intervals](https://leetcode.com/problems/merge-intervals)
- [Construct String With Repeat Limit](https://leetcode.com/problems/construct-string-with-repeat-limit)
- [Minimize Max Pair Sum](https://leetcode.com/problems/minimize-maximum-pair-sum-in-array/)
- [Jump Game](https://leetcode.com/problems/jump-game)
- [ZigZag Conversion](https://leetcode.com/problems/zigzag-conversion)
- [Two Sum II](https://leetcode.com/problems/two-sum-ii-input-array-is-sorted)
- [Container With Most Water](https://leetcode.com/problems/container-with-most-water)
- [Max Chunks to Make Sorted](https://leetcode.com/problems/max-chunks-to-make-sorted)
- [Valid Sudoku](https://leetcode.com/problems/valid-sudoku)
- [Merge Nodes In Between Zeroes](https://leetcode.com/problems/merge-nodes-in-between-zeros/)
- [Minimum Size SubArray](https://leetcode.com/problems/minimum-size-subarray-sum)
- [Rotate Image](https://leetcode.com/problems/rotate-image)
- [Set Matrix Zeroes](https://leetcode.com/problems/set-matrix-zeroes)
- [Group Anagrams](https://leetcode.com/problems/group-anagrams)
- [Min Stack](https://leetcode.com/problems/min-stack)
- [Reverse Polish Notation](https://leetcode.com/problems/evaluate-reverse-polish-notation)
- [Game of Life](https://leetcode.com/problems/game-of-life)
- [Longest Nice Sub-Array](https://leetcode.com/problems/longest-nice-subarray)
- [Add Two Numbers](https://leetcode.com/problems/add-two-numbers)

#### Hard

- [Kth Smallest Pair Distance](https://leetcode.com/problems/find-k-th-smallest-pair-distance)
- [Escape a Large Maze](https://leetcode.com/problems/escape-a-large-maze)
- [Graph With Stortest Path](https://leetcode.com/problems/design-graph-with-shortest-path-calculator/)

### Other

- [Harvard CS50 Readability](https://cs50.harvard.edu/x/2021/psets/2/readability/)
- [Warp Hiring Challenge](https://github.com/warpdotdev/hiring-challenge)