https://github.com/asjordi/codewars
Soluciones para los ejercicios de codewars.com con Java
https://github.com/asjordi/codewars
codewars coding-interviews interview java learn-to-code problem-solving programming solutions
Last synced: 6 months ago
JSON representation
Soluciones para los ejercicios de codewars.com con Java
- Host: GitHub
- URL: https://github.com/asjordi/codewars
- Owner: ASJordi
- License: mit
- Created: 2023-08-21T17:11:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-16T12:21:13.000Z (6 months ago)
- Last Synced: 2025-07-16T23:37:33.462Z (6 months ago)
- Topics: codewars, coding-interviews, interview, java, learn-to-code, problem-solving, programming, solutions
- Language: Java
- Homepage:
- Size: 1.61 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ejercicios de CodeWars :computer:
Este repositorio contiene mis soluciones a los ejercicios disponibles en [CodeWars](https://www.codewars.com) para los
lenguajes de Java, Python y JavaScript.
## ¿Qué es CodeWars? :question:
CodeWars es una plataforma en línea que ofrece ejercicios para mejorar las habilidades de programación. Cada ejercicio
tiene una descripción y un conjunto de pruebas automatizadas que deben pasar para considerarse completado. Después de
completar un ejercicio, se puede enviar para recibir comentarios y sugerencias de otros programadores en la comunidad.
## Estructura del repositorio :file_folder:
Cada lenguaje tiene su propia carpeta en el repositorio. Dentro de cada carpeta, hay una subcarpeta de acuerdo al nivel
de dificultad del ejercicio. Dentro de cada subcarpeta, se encuentra el archivo de código correspondiente, así como
cualquier recurso necesario para completar el ejercicio.
## Contenido :books:
Java
- Quadrants
- Quarter of the year
- A wolf in sheep's clothing
- Total amount of points
- Pillars
- Twice as old
- Sum of differences in array
- If you can't sleep, just count sheep!!
- Area or Perimeter
- Cat years, Dog years
- Reversed sequence
- The Feast of Many Beasts
- Multiplication table for number
- Return the day
- Century From Year
- Simple multiplication
- Sort My Textbooks
- Invert values
- Will there be enough space?
- Is he gonna survive?
- Switch it Up!
- Find the position!
- Will you make it?
- Array plus array
- All Star Code Challenge
- Traffic light
- Reduce but Grow
- Sum Mixed Array
- Remove String Spaces
- Convert a string to an array
- Calculate average
- String repeat
- Make UpperCase
- Lost Without a Map
- Fake Binary
- Abbreviate a Two Word Name
- Find Maximum and Minimum Values of a List
- Sum of positive
- Remove exclamation marks
- You only need one
- Basic Mathematical Operations
- No zeros for heros
- Opposite number
- Double Char
- Count the Monkeys!
- Remove First and Last Character
- Sum without highest and lowest number
- Count of positives / sum of negatives
- Did she say hallo?
- Grasshopper - Messi goals function
- How good are you really?
- Filtering even numbers (Bug Fixes)
- Grasshopper - Summation
- Grasshopper - Basic Function Fixer
- Grasshopper - Messi Goals
- Grasshopper - Debug sayHello
- Third Angle of a Triangle
- Pythagorean Triple
- Grasshopper - Grade book
- Alternating Case
- Classic Hello World
- Reversed Strings
- Convert a Number to a String
- Convert a String to a Number
- Grasshopper - Personalized Message
- Returning Strings
- Vowel remover
- Welcome to the City
- Are You Playing Banjo?
- Well of Ideas - Easy Version
- The Wide-Mouthed frog!
- Sort and Star
- Correct the mistakes of the character recognition software
- Convert a Boolean to a String
- Sentence Smash
- DNA to RNA Conversion
- A Strange Trip to the Market
- Remove the time
- Grasshopper - Array Mean
- Square(n) Sum
- Lario and Muigi Pipe Problem
- Duck Duck Goose
- Removing Elements
- Volume of a Cuboid
- Surface Area and Volume of a Box
- The Ternary Operator
- This is a problem
- if..else and ternary operator
- Blue and red marbles
- Area of a Square
- Squash the bugs, not the dogs!
- A + B
- Multiply
- Swap Values
- How do I compare numbers?
- is it a digit?
- Simple validation of a username with regex
- Even or Odd
- Keep Hydrated!
- Check for factor
- Duty Free
- Powers of 2
- Is your period late?
- Object Oriented Piracy
- Color Ghost
- Basic subclasses - Adam and Eve
- Playing with cubes I
- HQ9+
- Difference of Volumes of Cuboids
- Replace all vowel to exclamation mark in the sentence
- Is it even?
- Calculate BMI
- Leonardo Dicaprio and Oscars
- Return Negative
- School Paperwork
- Cockroach
- Formatting decimal places
- Parse nice int from char problem
- Sum of Multiples
- Rock Paper Scissors!
- Hello World
- Squaring an argument
- Sleigh Authentication
- Kata Example Twist
- Convert boolean values to strings Yes or No
- Sum Arrays
- You Can't Code Under Pressure
- Take the First N Elements
- True for All
- Plural
- Opposites Attract
- Counting sheep
- Convert number to reversed array of digits
- Find the smallest integer in the array
- get character from ASCII Value
- What is between?
- Merging sorted integer arrays (without duplicates)
- Count by X
- Terminal game move function
- Welcome
- Printing Array elements with Comma delimiters
- Remove n exclamation marks in the sentence from left to right
- Multiple of index
- Set Alarm
- A Needle in the Haystack
- Exclusive "or" (xor) Logical Operator
- Find the first non-consecutive number
- Clock
- Fuel Calculator: Total Cost
- String Templates
- Reversed Words
- Keep up the hoop
- Tip Calculator
- Is it a number?
- Stringy Strings
- I love you, a little , a lot, passionately ... not at all
- Get the mean of an array
- My head is at the wrong end!
- Unfinished Loop
- Jenny's secret message
- Push a hash/an object into array
- Basic variable assignment
- Do I get a bonus?
- Is n divisible by x and y?
- Unexpected parsing
- Count Odd Numbers below n
- Get Nth Even Number
- Static electrickery
- Replace all dots
- Ghost code
- How many stairs will Suzuki climb in 20 years?
- Debug Celsius Converter
- Triple Trouble
- Miles per gallon to kilometers per liter
- To square(root) or not to square(root)
- Find numbers which are divisible by given number
- Index of an element in an array
- Easy logs
- Bin to Decimal
- Hex to Decimal
- Convert to Binary
- Smallest unused ID
- Wilson primes
- Counting Characters
- Name on billboard
- Age Range Compatibility Equation
- Find Multiples of a Number
- Find the Integral
- Find the Slope
- Transportation on vacation
- Circles in Polygons
- Compare within margin
- How old will I be in 2099?
- Determine offspring sex based on genes XX and XY chromosomes
- Localize The Barycenter of a Triangle
- Never visit a
- Points of Reflection
- Collatz Conjecture
- Find Nearest square number
- Get Planet Name By ID
- Shark Pontoon
- Gravity Flip
- Up and down, the string grows
- Codewarrior
- Grasshopper - Combine strings
- Remove duplicates from list
- Grasshopper - Terminal game combat function
- Grader
- Remove all exclamation marks from sentence but ensure a exclamation mark at the end of string
- Multiply the number
- String cleaning
- Grasshopper - Terminal Game 1
- Collinearity
- CSV representation of array
- Short Long Short
- The If Function
- Generate Range Of Integers
- Is the String Uppercase
- Price Of Mangoes
- Students Final Grade
- Floating point comparison
- Find Out Whether The Shape Is A Cube
- Playing With Cubes II
- Closest Elevator
- Expressions Matter
- Find The Force Of Gravity Between Two Objects
- Add Length
- Grasshopper - If/else syntax debug
- Draw Stairs
- Drink About
- BASIC: Making Six Toast
- Sum The Strings
- USD CNY
- Classy Extentions
- Simple Calculator
- Dot Calculator
- Last
- Fun with lists: length
- Unlucky Days
- Leap Years
- Age in days
- Sum of odd numbers
- Sort arrays
- Sort the Gift Code
- Without the letter E
- Get the Middle Character
- Ch4113ng3
- Remove duplicate words
- Find the index of the second occurrence of a letter in a string
- Simple remove duplicates
- Sorted? yes? no? how?
- Odd-Even String Sort
- How many arguments
- Length and two values
- Null
- Last Survivor
- Double value every next call
- Four/Seven
- Max-min arrays
- Is It Negative Zero
- Plus - minus - plus - plus - ... - Count
- Simple letter removal
- Simple string reversal
- Predict your age
- Remove consecutive duplicate words
- Fix string case
- Single digit
- Responsible Drinking
- FIXME: 1, 2, 3, 4
- Alternate capitalization
- Most digits
- Count consonants
- Covfefe
- String Merge!
- Eliminate the intruders! Bit manipulation
- Reverse the bits in an integer
- Delta Bits
- is it a eight bit signed number?
- Lombok Encapsulation
- Consecutive letters
- Check three and two
- Form The Minimum
- Sorting the Odd way!
- Inspiring Strings
- Disagreeable ascii
- Filter the number
- Switcheroo
- Split In Parts
- Greet Me
- Vowel Count
- Highest and Lowest
- Alphabet war
- Insert dashes
- Reverse words
- Caffeine Script
- Keypad horror
- makeBackronym
- Character Counter
- String ends with?
- Shorter concat [reverse longer]
- Scrabble Score
- Shift Left
- Build a square
- Simple string characters
- Pizza Payments
- Indexed capitalization
- Survive the attack
- Alphabetical Sequence
- Hide password from jdbc url
- Sum of numbers from 0 to N
- FIXME: Get Full Name
- Odd or Even?
- Word values
- Cat Years, Dog Years (2)
- Incrementer
- Sum of Cubes
- FIXME: Hours to Seconds
- Reverse Letter
- Difference between years
- Shortest Word
- Simple beads count
- Tidy Number
- Special Number
- Mean vs. Median
- Number of Decimal Digits
- Debug Sum of Digits of a Number
- FIXME: Let's split this joint
- Digits explosion
- Two numbers are positive
- Anagram Detection
- Remove all exclamation marks from the end of words
- Move all exclamation marks to the end of the sentence
- Simple eviternity numbers
- Factorial
- Find min and max
- Describe a list
- Alternate case
- Sum a list but ignore any duplicates
- Fibonacci
- Vaporcode
- The Office I - Outed
- Rock Paper Scissors Lizard Spock
- Ordered Count of Characters
- What a "Classy" Song
- Building Blocks
- Spacify
- ToLeetSpeak
- Small enough? - Beginner
- WASD Movement
- Regexp Basics - is it a letter?
- Regexp Basics - is it a vowel?
- Heron's formula
- Bumps in the Road
- Interactive Dictionary
- Paul's Misery
- Selective fear of numbers
- What is the flag?
- Math.pow?
- Printer Errors
- Lucky number
- Square Every Digit
- Basic Calculator
- Regex validate PIN code
- List Filtering
- Complete The Pattern #1
- Complete The Pattern #2
- Number-Star ladder
- Lost number in number sequence
- Where is THB?
- Changing letters
- Lunar Mathematics: Addition
- Row Weights
- Disarium Number
- Sum of Two Integers
- Move 10
- Regexp basics - parsing prices
- Formatting decimal places #1
- Maximum Length Difference
- Two to One
- Calculate mean and concatenate string
- Zebulans Nightmare
- Quicksum
- Valid Spacing
- ANTISTRING
- Suitcase packing
- Unique string characters
- Stanton measure
- Possibilities Array
- How long should you cook this for?
- Decimal decomposition
- How long should you cook this for?
- Beginner Series #3 Sum of Numbers
- Basics - Generators #1
- Multiplication - Generators #2
- Automorphic Number
- Jumping Number
- Folding your way to the moon
- Converting from base 10 to 16
- Growth of a Population
- Very Even Numbers
- Large sum
- Disemvowel Trolls
- Alternate Square Sum
- Descending Order
- Exes and Ohs
- Isograms
- Factorial
- Overflowing with joy
- Name Array Capping
- Chinese Zodiac
- Is this a triangle?
- Jaden Casing Strings
- Largest Elements
- Batman Quotes
- You're a square!
- Return the first M multiples of N
- Reverse a Number
- max diff - easy
- Area of a Circle
- Functional Addition
- Power of two
- Powers of i
- Smallest value of an array
- Money, Money, Money
- Arithmetic progression
- Arithmetic Sequence!
- C.Wars
- Double Every Other
- Is n divisible by
- Help the Fruit Guy
- Complete The Pattern #4
- Compound Array
- Pandemia
- Partial Word Searching
- Santa's Naughty List
- Scoring Tests
- Complementary DNA
- Convert Time to String
- Sum of the first nth term of Series
- Testing 1-2-3
- From A to Z
- GCD sum
- Speed Limit
- Simple string reversal II
- Excel sheet column numbers
- Computer problem series #1: Fill the Hard Disk Drive
- Supernatural
- You Can't Code Under Pressure #2
- Count the divisors of a number
- The alphabet product
- Swapping Cards
- Basic Sequence Practice
- Broken sequence
- Prison Break
- Where's Wally
- String interlacing
- Compare Strings by Sum of Chars
- Cryptanalysis Word Patterns
- Herding cats
- Trigrams
- Regexp Basics - is it a hexadecimal number?
- The highest profit wins
- Longest vowel chain
- Ordering the words
- Password maker
- Find Screen Size
- Monty Hall Problem
- Recursion 101
- Binary Addition
- Mumbling
- Binary scORe
- How many urinals are free?
- Fusion Chamber Shutdown
- Nickname Generator
- Mystery Colors
- Bulls and Cows
- Harvest Festival
- How many consecutive numbers are needed?
- Largest pair sum in array
- Integer Primitive Data Types
- Previous multiple of three
- Round up to the next multiple of 5
- Happy Birthday, Darling!
- Most valuable character
- See You Next Happy Year
- Java Functional Programming (Part 1: The Beginning)
- Java Functional Programming (Part 2: Multiline Functions)
- Java Functional Programming (Part 3: Closured for Business)
- ATM
- Thinking & Testing: A and B?
- Acronym Generator
- A Letters Best Friend
- All Unique
- Alphabet Symmetry
- Are The Numbers In Order
- Between Extremes
- Battle of the characters (Easy)
- Bubble Sort Once
- Convert A LinkedList To A String
- Array Element Parity
- Alphabetical Addition
- Bingo Or Not
- Count The Digit
- Averages Of Numbers
- All Star Code Challenge #22
- Credit Card Mask
- Day Of The Year
- Difference Between Two Collections
- Digitize
- Dont Give Me Five
- Double Sort
- Double Trouble
- Email Address Obfuscator
- Simple Fun #9: Array Packing
- Execute Me N Times
- Extended Weekends
- Figurate Numbers #2 - Pronic Number
- Credit Card Issuer Checking
- Bits Battle
- Find A Meeting Room
- Find Count Of Most Frequent Item In An Array
- Find The Missing Number
- Find The Next Perfect Square
- Find The Nth Occurrence Of A Word In A String
- Array - squareUp b!
- Binary Calculator
- All Nines
- Balanced Number (Special Numbers Series #1)
- Extra Perfect Numbers (Special Numbers Series #7)
- Fire On The Boat
- FizzBuzz
- FizzBuzz Cuckoo Clock
- Fizz Or Buzz
- Flatten And Sort An Array
- All Inclusive?
- Generic Inheritance
- Even Numbers In An Array
- Find The Capitals
- Friend Or Foe
- Boiled Eggs
- Char Code Calculation
- Ghostbusters Whitespace Removal
- Cat and Mouse - Easy Version
- Drone Fly-By
- Evens Times Last
- Even or Odd - Which is Greater?
- Find The Vowels
- Area Of An Arrow
- Difference Of Squares
- Driving Licence
- Simple Fun #41: Elections Winners
- Binary sXORe
- Elevator Distance
- Go Stone Scoring
- Green Glass Door
- Simple Fun #74: Growing Plant
- Geometry Basics: Dot Product in 3D
- Guess The Sequence
- C Is For Codewars
- Closing In Sum
- Array Leaders (Array Series #3)
- Consecutive Digits To Form Sum
- Cyrillic Letters
- Halving Sum
- Heavy Metal Umlauts
- Hello World - Without Strings
- Help Bob Count Letters And Digits
- Help Suzuki Rake His Garden
- Simple Fun #37: House Numbers Sum
- How far will I go?
- How Green Is My Valley?
- How Many Days Are We Represented In A Foreign Country
- Thinking & Testing : Incomplete string
- Invisible Cubes
- Simple Fun #152: Invite More Women?
- Regexp Basics - is it a eight bit unsigned number?
- Greatest Common Divisor Bit Count
- Regexp Basics - is it a six bit unsigned number?
- Is Valid Identifier
- Check Whether A Number Is Valid In A Given Numeral System
- The Solar System - Jumbled Planets
- Largest 5 Digit Number In A Series
- Latin Squares
- Likes Vs Dislikes
- Linked Lists Append
- Linked Lists Get Nth Node
- Lombok Builder
- Looking For A Benefactor
- Love Vs Friendship
- Make Me Slow
- Map Over A List Of Lists
- Maximum Gap
- Maximum Multiple
- Maximum Product
- Maximum Triplet Sum
- Minimize Sum Of Array
- Minimum Steps
- More Than Zero
- Multiply All Elements In An Array
- My Language Skills
- N-Dimensional Vector Magnitude
- Nice Array
- No Ifs No Buts
- Nth Power Rules Them All
- Nth Smallest Element
- Number Of People In The Bus
- Numbers In Strings
- Numbers To Letters
- Numbers With D Occurrences Of Digit D
- Numbers With This Digit Inside
- Number To Digit Tiers
- Odder Than The Rest
- Substituting Variables Into Strings: Padded Numbers
- Palindrome Chain Length
- Parallel Resistors
- Password System
- Product Array (Array Series #5)
- Product Of Maximums Of Array
- Linked Lists - Push & Build One Two Three
- Thinkful - String Drills: Quotable
- Redacted
- Reduce My Fraction
- Regex Validation Of 24 Hours Time
- Remove Anchor From URL
- Remove The Minimum
- Replace Every Nth
- Return Substring Instance Count
- Reversing Fun
- Running Out Of Space
- Run Runner
- Scaling Squared Strings
- Scrolling Text
- Search For Letters
- Silly Addition
- Sort By Last Char
- Simple Array Product
- Count The Ones
- Status Arrays
- Simple Consecutive Pairs
- Substring Fun
- Simple Fun #40: Timed Reading
- Sum Of Minimums
- Thinking & Testing : Something capitalized
- Show Multiples Of 2 Numbers Within A Range
- Sort An Array By Value And Index
- Sort Out The Men From Boys
- Sum Array With Different Bases
- Orthogonal Vectors
- Basic Math (Add or Subtract)
- Summing A Numbers Digits
- Sum Of Angles
- Sum Of Array Singles
- Sum Of A Sequence
- Sum Of Odd Cubed Numbers
- Numbers Which Sum of Powers of Its Digits Is The Same Number
- Sum Of Triangular Numbers
- Target Date
- Swap Pairs In Array
- The Pony Express
- Sum of Digits / Digital Root
- Multiplication table
- Break camelCase
- Highest Scoring Word
- Your order, please
- Count the number of days between two dates
- A + B == 123
- Consonant value
- Change case
- Round and Round
- Password Maker
- Determine the date by the day number
- Sum the nums, sum the sums and sum the nums up to that sum
- Count characters in your string
- Counting Duplicates
- Interval
- Basic Compression
- Who likes it?
- Fat Fingers
- Ascend, Descend, Repeat?
- Meeting
- More Zeros than Ones
- My friend time
- Phone Screen Organizer
- Simple reversed parenthesis
- What's A Name In?
- Count the days!
- Minutes to Midnight
- How many working days
- Everybody hates Mondays
- Phone Words
8 kyu
7 kyu
6 kyu
## Contribuciones :handshake:
Siéntete libre de revisar mis soluciones y hacer sugerencias para mejoras. También puedes enviar tus propias soluciones
a los ejercicios que aún no he completado.
## Contacto :mailbox:
Si tienes alguna pregunta o comentario sobre este repositorio, no dudes en contactarme a través de mi perfil de Github.
¡Gracias por tu interés!
## Licencia :page_facing_up:
Este repositorio utiliza la licencia MIT. Consulte el archivo [LICENSE](LICENSE) para obtener más información.