https://github.com/mrjasonweaver/rearrange-words-rust
https://github.com/mrjasonweaver/rearrange-words-rust
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrjasonweaver/rearrange-words-rust
- Owner: mrjasonweaver
- Created: 2024-08-19T15:25:58.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T15:19:43.000Z (9 months ago)
- Last Synced: 2025-01-28T04:42:16.373Z (4 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Rearrange Words in a Sentence with Rust
## Problem
Given a sentence text (A sentence is a string of space-separated words) in the following format:First letter is in upper case.
Each word in text are separated by a single space.
Your task is to rearrange the words in text such that all words are rearranged in an increasing order of their lengths. If two words have the same length, arrange them in their original order.Return the new text following the format shown above.
[https://leetcode.com/problems/rearrange-words-in-a-sentence/description/](https://leetcode.com/problems/rearrange-words-in-a-sentence/description/)