Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rabestro/sololearn-challenges
Descriptions of SoloLearn Coding Challenges (all 72, including pro) and solutions in C, Java, Python and Ruby
https://github.com/rabestro/sololearn-challenges
challenge challenges regular-expression sololearn streams student-project
Last synced: 3 months ago
JSON representation
Descriptions of SoloLearn Coding Challenges (all 72, including pro) and solutions in C, Java, Python and Ruby
- Host: GitHub
- URL: https://github.com/rabestro/sololearn-challenges
- Owner: rabestro
- License: mit
- Created: 2019-12-21T11:03:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T12:23:33.000Z (over 2 years ago)
- Last Synced: 2023-03-24T11:09:26.804Z (almost 2 years ago)
- Topics: challenge, challenges, regular-expression, sololearn, streams, student-project
- Language: Java
- Homepage:
- Size: 1.18 MB
- Stars: 93
- Watchers: 11
- Forks: 41
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sololearn Coding Challenges
There are all 72 problems from **SoloLearn Code Coach** with full descriptions and my solutions in Java. The problems grouped by dificulty: Easy, Medium, Hard. The codes have written on mobile device in Sololearn sandbox, sucessfully run and passes all tests by Sololearn. The link to my profile at Sololearn: https://www.sololearn.com/Profile/15186890/
As an answer to the #OneLiners challenge from SoloLearn I also created [One-Line solutions in Ruby](OneLinersRuby.md) and [One-Statement](one-statement) solutions in Java language for about 60% problems.
## Easy
Description | Java | Used Java API classes and methods, notes
----|----|----
[Popsicles](easy/popsicles/README.md) | [Popsicles.java](easy/popsicles/Popsicles.java) | Ternary operator
[Halloween Candy](easy/halloween-candy/README.md) | [HalloweenCandy.java](easy/halloween-candy/HalloweenCandy.java) | Math
[Fruit Bowl](easy/fruit-bowl/README.md) | [FruitBowl.java](easy/fruit-bowl/FruitBowl.java) |
[Ballpark Orders](easy/pro-ballpark-orders/README.md) | [BallparkOrders.java](easy/pro-ballpark-orders/BallparkOrders.java) | Map, BigDecimal, Stream, Scaner::tokens (Java 11)
[Cheer Creator](easy/cheer-creator/README.md) | [CheerCreator.java](easy/cheer-creator/CheerCreator.java) | String::repeat (Java 11)
[Skee-ball](easy/skee-ball/README.md) | [SkeeBall.java](easy/skee-ball/SkeeBall.java) |
[Paint Costs](easy/paint-costs/README.md) | [PaintCosts.java](easy/paint-costs/PaintCosts.java) | BigDecimal, RoundingMode
[Argentina](easy/argentina/README.md) | [Argentina.java](easy/argentina/Argentina.java) | I use multiplication to keep max precision
[Balconies](easy/pro-balconies/README.md) | [Balconies.java](easy/pro-balconies/Balconies.java) | Scanner::useDelimiter
[Candles](easy/pro-candles/README.md) | [Candles.java](easy/pro-candles/Candles.java) |
[Duct Tape](/easy/pro-duct-tape/README.md) | [DuctTape.java](/easy/pro-duct-tape/DuctTape.java) | Math
[Easter Eggs](easy/pro-easter-eggs/README.md) | [EasterEggs.java](easy/pro-easter-eggs/EasterEggs.java) | Ternary operator
[Guard Flamingos](easy/guard-flamingos/README.md) | [GuardFlamingos.java](easy/guard-flamingos/GuardFlamingos.java) |
[Gotham City](easy/gotham-city/README.md) | [GothamCity.java](easy/gotham-city/GothamCity.java) | MessageFormat::format
[Hovercraft](easy/hovercraft/README.md) | [Hovercraft](easy/hovercraft) | BigDecimal
[Izzy the Iguana](easy/pro-izzy-the-iguana/README.md) | [IzzyIguana.java](easy/pro-izzy-the-iguana/IzzyIguana.java) | Map, Scaner::tokens (Java 11)
[Kaleidoscopes](easy/pro-kaleidoscopes/README.md) | [Kaleidoscopes.java](easy/pro-kaleidoscopes/Kaleidoscopes.java) | BigDecimal (There is errors in SoloLearn tests)
[Jungle Camping](easy/jungle-camping/README.md) | [JungleCamping.java](easy/jungle-camping/JungleCamping.java) | Map, Scaner::tokens (Java 11)
[Land Ho!](easy/pro-land-ho/README.md) | [LandHo.java](easy/pro-land-ho/LandHo.java) |
[Neverland](easy/pro-neverland/README.md) | [Neverland.java](easy/pro-neverland/Neverland.java) | System.out::printf
[Extra-Terrestrials](easy/extra-terristrials/README.md) | [ExtraTerrestrials.java](easy/extra-terristrials/ExtraTerrestrials.java) | StringBuilder::reverse
[Zip Code Validator](easy/pro-zip-code-validator/README.md) | [ZipCodeValidator.java](easy/pro-zip-code-validator/ZipCodeValidator.java) | Pattern::matches
[Vowel Counter](easy/pro-vowel-counter/README.md) | [VowelCounterRE.java](easy/pro-vowel-counter/VowelCounterRE.java) | String::replaceAll
[Isogram Detector](easy/pro-isogram-detector/README.md) | [IsogramDetector.java](easy/pro-isogram-detector/IsogramDetector.java) | Pattern::matches
[Multiples](easy/pro-multiples/README.md) | [Multiples.java](easy/pro-multiples/Multiples.java) | IntStream, lambda
[Number of Ones](easy/pro-number-of-ones/README.md) | [NumberOfOnes.java](easy/pro-number-of-ones/NumberOfOnes.java) | Integer::bitCount## Medium
Description | Java | Used Java API classes and methods, notes
----|----|----
[Pig Latin](medium/pig-latin/README.md) | [PigLatinRE.java](medium/pig-latin/PigLatinRE.java) | String::replaceAll, RegEx
_ | [PigLatinStream.java](medium/pig-latin/PigLatinStream.java) | Scanner::tokens, lambda
_ | [PigLatinClassic.java](medium/pig-latin/PigLatinClassic.java) | System.out::printf
[Safety Deposit Boxes](medium/pro-safety-deposit-boxes/README.md) | [SafetyDepositBoxes.java](medium/pro-safety-deposit-boxes/SafetyDepositBoxes.java) | String::replaceAll, RegEx (tricky?)
[Roadrunner](medium/pro-roadrunner/README.md) | [Roadrunner.java](medium/pro-roadrunner/Roadrunner.java) |
[Snap, Crackle and Pop](medium/pro-snap-crackle-and-pop/README.md) | [SnapCrackleAndPop.java](medium/pro-snap-crackle-and-pop/SnapCrackleAndPop.java) | Stream, lambda
[Deja Vu](medium/deja-vu/README.md) | [DejaVu.java](medium/deja-vu/DejaVu.java) | Pattern::matches
[The Spy Life](medium/the-spy-life/README.md) | [TheSpyLife.java](medium/the-spy-life/TheSpyLife.java) | StringBuilder
[Hex Color Code Generator](medium/pro-hex-color-code-generator/README.md) | [HexColorCodeGenerator.java](medium/pro-hex-color-code-generator/HexColorCodeGenerator.java) | System.out::printf
[Symbols](medium/symbols/README.md) | [Symbols.java](medium/symbols/Symbols.java) | String::replaceAll, RegEx
[Super Sale](medium/pro-super-sale/README.md) | [SuperSale.java](medium/pro-super-sale/SuperSale.java) | Stream
[Duty Free](medium/pro-duty-free/README.md) | [DutyFree.java](medium/pro-duty-free/DutyFree.java) | Stream
[Carrot Cake](medium/pro-carrot-cake/README.md) | [CarrotCake.java](medium/pro-carrot-cake/CarrotCake.java) | System.out::printf
[Building Blocks](medium/pro-building-blocks/README.md) | [BuildingBlocks.java](medium/pro-building-blocks/BuildingBlocks.java) | IntStream::generate
[Name Buddy](medium/pro-name-buddy/README.md) | [NameBuddy.java](medium/pro-name-buddy/NameBuddy.java) | String::concat
_ | [NameBuddyRegEx.java](medium/pro-name-buddy/NameBuddyRegEx.java) | String::matches
[That's odd...](medium/thats-odd/README.md) | [ThatsOdd.java](medium/thats-odd/ThatsOdd.java) | IntStream
[No Numerals](medium/no-numerals/README.md) | [NoNumerals.java](medium/no-numerals/NoNumerals.java) | Map, Stream, lambda
[Secret Message](medium/secret-message/README.md) | [SecretMessage.java](medium/secret-message/SecretMessage.java) | Stream, lambda
[Divisible](medium/pro-divisible) | [Divisible.java](medium/pro-divisible/Divisible.java) |Stream, lambda
[Even Numbers](medium/pro-even-numbers/README.md) | [EvenNumbers.java](medium/pro-even-numbers/EvenNumbers.java) | IntStream
[Military Time](medium/military-time/README.md) | [MilitaryTime.java](medium/military-time/MilitaryTime.java) | Date & Time API Java 11
[Tax Free](medium/pro-tax-free/README.md) | [TaxFree.java](medium/pro-tax-free/TaxFree.java) | Stream
[How Far?](medium/pro-how-far/README.md) | [HowFar.java](medium/pro-how-far/HowFar.java) | String::replaceAll, RegEx
[Average Word Length](medium/average-word-length/README.md) | [AverageWordLength.java](medium/average-word-length/AverageWordLength.java) | String::split, String::replaceAll
. | [AverageWordLengthStream.java](medium/average-word-length/AverageWordLengthStream.java) | Stream, Collectors::averagingInt
[YouTube Link Finder](medium/youtube-link-finder/README.md) | [YouTubeLinkFinder.java](medium/youtube-link-finder/YouTubeLinkFinder.java) | String::replaceAll, RegEx
[Convert US date to EU date](medium/convert-date/README.md) | [ConvertDate.java](medium/convert-date/ConvertDate.java) | Date & Time API Java 11
[Day of the Week](medium/pro-day-of-the-week/README.md) | [DayOfWeek.java](medium/pro-day-of-the-week/DayOfWeek.java) | Date & Time API Java 11
[Camel to Snake](medium/pro-camel-to-snake/README.md) | [CamelToSnake.java](medium/pro-camel-to-snake/CamelToSnake.java) | String::replaceAll, RegEx
[Days between dates](medium/pro-days-between-dates/README.md) | [DaysBetweenDates.java](medium/pro-days-between-dates/DaysBetweenDates.java) | Date & Time API Java 11
[Text Decompressor](medium/pro-text-decompressor/README.md) | [TextDecompressor.java](medium/pro-text-decompressor/TextDecompressor.java) | Stream
[Snowballing Numbers](medium/pro-snowballing-numbers/README.md) | [SnowballingNumbers.java](medium/pro-snowballing-numbers/SnowballingNumbers.java) | Stream
[Flowing Words](medium/pro-flowing-words/README.md) | [FlowingWords.java](medium/pro-flowing-words/FlowingWords.java) | RegEx
[Splitting Strings](medium/pro-splitting-strings/README.md) | [SplittingStrings.java](medium/pro-splitting-strings/SplittingStrings.java) | String::format, String::split, String::join, RegEx
[Missing Numbers](medium/pro-missing-numbers/README.md) | [MissingNumbers.java](medium/pro-missing-numbers/MissingNumbers.java) | Stream
[Initials](medium/pro-initials/README.md) | [Initials.java](medium/pro-initials/Initials.java) | Stream, RegEx
[Credit Card Validator](medium/pro-credit-card-validator/README.md) | [CreditCardValidator.java](medium/pro-credit-card-validator/CreditCardValidator.java) | StringBuilder, Stream
[CMYK to RGB](medium/pro-CMYK-to-RGB/README.md) | [CmykToRgb.java](medium/pro-CMYK-to-RGB/CmykToRgb.java) | Math, float## Hard
Description | Java | Used Java API classes and methods, notes
----|----|----
[New Driver's License](hard/new-drivers-license/README.md) | [NewDriversLicense.java](hard/new-drivers-license/NewDriversLicense.java) | Stream, lambda
[It's a Sign](hard/pro-its-a-sign/README.md) | [ItsSign.java](hard/pro-its-a-sign/ItsSign.java) | StringBuilder, Stream
[Mathematics](hard/pro-mathematics/README.md) | [Mathematics.java](hard/pro-mathematics/Mathematics.java) | Interface, Lambda, RegEx, Collections, Recursion
[Password Validation](hard/password-validation/README.md) | [PasswordValidation.java](hard/password-validation/PasswordValidation.java) | RegEx
[Security](hard/security/README.md) | [Security.java](hard/security/Security.java) | RegEx
[2D Map](hard/pro-2d-map/README.md) | [Map2D.java](hard/pro-2d-map/Map2D.java) | Math, String::indexOf
[Hofstadter's Q-Sequence](hard/pro-hofstadter-q-sequence/README.md) | [HofstadtersQSequence.java](hard/pro-hofstadter-q-sequence/HofstadtersQSequence.java) |
[Digits of Pi](hard/pro-digits-of-pi/README.md) | [PiCalculation.java](hard/pro-digits-of-pi/PiCalculation.java) | BigDecimal, Algorithm
[Longest Common Substring](medium/pro-longest-common-substring/README.md) | [Longest Common Substring](medium/pro-longest-common-substring) |
[Poker Hand](hard/pro-poker-hand/README.md) | [PokerHand.java](hard/pro-poker-hand/PokerHand.java) | Stream, RegEx
[Word Rank](hard/pro-word-rank/README.md) | [Word Rank](hard/pro-word-rank) |