A collection of CodeWars Kata solutions written in Dart, showcasing problem-solving skills through coding challenges organized by difficulty level.
Solutions are grouped by difficulty level (kyu) in directories named after each Kata.
- Sentence Smash: Join a list of words into a single string with spaces.
- Find the Smallest Integer: Find the smallest integer in a list of integers.
- Find Maximum and Minimum Values: Find the smallest and largest integers in a list.
- Clock Past: Convert time (hours, minutes, seconds) to milliseconds past midnight.
- Even or Odd: Determine if a number is even or odd.
- Quarter of the year: Determine the quarter for a given month.
- Convert a String to a Number: Convert a string to an integer.
- Convert a Number to a String: Convert an integer to a string.
- Counting Sheep: Count the number of true values in a list.
- Reserved Sequence: Create a function that returns an array of integers from n to 1.
- Reversed Strings: Reverse a string.
- Opposite number: Return the opposite of a number.
- Sum without highest and lowest numbers: Calculate the sum of numbers excluding the highest and lowest.
- Remove String Spaces: Remove spaces from a string.
- Square(n) Sum: Calculate the sum of squares of numbers in a list.
- Bin to Decimal: Convert a binary string to a decimal number.
- Flick Switch: Toggle a boolean value based on "flick" occurrences in a list.
- Largest 5 Digit Number: Find the largest 5-digit number from consecutive digits in a string.
- Highest and Lowest: Find the highest and lowest numbers in a string of space-separated numbers.
- Sum of odd numbers: Calculate the sum of the numbers in the nth row of this triangle (starting at index 1).
- Vowel Count: Count the number of vowels in a string.
- Get the Middle Character: Get the middle character(s) of a string.
- Mumbling: Create a string where each character is repeated according to its index.
- Indexed capitalization: Given a string and an array of integers representing indices, capitalize all letters at the given indices.
- Split Strings: Split a string into pairs of characters, adding '_' to the last if odd length.
- Who likes it?: Determine who likes a post based on the number of names.
- Valid Braces: Determine if a string contains valid matching parentheses.
- Bonuses: fair bonuses of all employees in the same order as their numbers of days of absences.
- Roman Numerals Decoder: Decode a Roman numeral string into an integer.
- Build a pile of Cubes: Calculate the number of cubes needed to build a pile of cubes with a given volume.
- Alex & snooker: points earned.: Calculate the points earned in a snooker game based on the number of balls potted.
- Mexican Wave: Create a "wave" effect in a string by capitalizing each letter in turn.
- Josephus Permutation: Solve the Josephus problem by finding the last person remaining after eliminating every k-th person in a circle.
- Perimeter of squares in a rectangle: Calculate the perimeter of squares that can fit inside a rectangle with given dimensions(fibonacci).
- RGB To Hex Conversion: Convert an RGB color to a hexadecimal color.
- Weight for weight: Sort a list of strings based on the sum of the digits in each string, with ties broken by lexicographical order.
- Sum of Intervals: Calculate the sum of all intervals in a list, avoiding overlaps.
- Human readable duration format: Convert a duration in seconds to a human-readable format (e.g., "1 hour, 2 minutes, 3 seconds").
- Total area covered by rectangles: Calculate the total area covered by a list of rectangles, accounting for overlaps.
More Katas coming soon!
This repository contains solutions to CodeWars challenges, written in Dart for clean, efficient code. It’s perfect for learning Dart, preparing for interviews, or enjoying coding puzzles. Each solution includes comments and test cases.
Licensed under the MIT License.
Happy coding! Give a ⭐ if you find this helpful!