kata

package
v0.0.0-...-a7563ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 4 Imported by: 0

README

Code Wars | Kata | 8 kyu

Answers to the questions I solved in the 8-kyu degree:

  1. String repeat
  2. Counting sheep
  3. Basic variable assignment
  4. Even or Odd
  5. DNA to RNA Conversion
  6. Is he gonna survive?
  7. Square(n) Sum
  8. Reversed Strings
  9. Subtract the sum
  10. Get Nth Even Number
  11. Beginner Series #2 Clock
  12. Grasshopper - Messi goals function
  13. You Can't Code Under Pressure #1
  14. Function 3 - multiplying two numbers
  15. Grasshopper - Terminal game move function
  16. Keep Hydrated!
  17. Function 1 - hello world
  18. Sum of positive
  19. Beginner - Lost Without a Map
  20. Grasshopper - Check for factor
  21. Quarter of the year
  22. Grasshopper - Grade book
  23. Sort and Star
  24. Multiplication table for number
  25. Is it a palindrome?
  26. MakeUpperCase
  27. Jenny's secret message
  28. To square(root) or not to square(root)
  29. If you can't sleep, just count sheep!!
  30. Count Odd Numbers below n
  31. altERnaTIng cAsE <=> ALTerNAtiNG CaSe
  32. Well of Ideas - Easy Version
  33. Total amount of points
  34. Count of positives / sum of negatives
  35. The Feast of Many Beasts
  36. Multiple of index
  37. find the unique element
  38. Grasshopper - Terminal game combat function
  39. Is this my tail?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForFactor

func CheckForFactor(base int, factor int) bool

func CorrectTail

func CorrectTail(body string, tail rune) bool

func CountPositivesSumNegatives

func CountPositivesSumNegatives(numbers []int) []int

func CountSheeps

func CountSheeps(numbers []bool) int

func DNAtoRNA

func DNAtoRNA(dna string) string

func DoubleInteger

func DoubleInteger(i int) int

func EvenOrOdd

func EvenOrOdd(number int) string

func Feast

func Feast(beast string, dish string) bool

func GetGrade

func GetGrade(a, b, c int) rune

func Goals

func Goals(laLigaGoals, copaDelReyGoals, championsLeagueGoals int) int

func Greet

func Greet(name string) string

func Hero

func Hero(bullets, dragons int) bool

func IsPalindrome

func IsPalindrome(str string) bool

func Litres

func Litres(time float64) int

func MakeUpperCase

func MakeUpperCase(str string) string

func Maps

func Maps(x []int) []int

func Move

func Move(position int, roll int) int

func MultiTable

func MultiTable(number int) string

func Multiply

func Multiply(a, b int) int

func Namevar

func Namevar() string

func NoSpace

func NoSpace(word string) string

func NthEven

func NthEven(n int) int

func OddCount

func OddCount(n int) int

func Past

func Past(h, m, s int) int

func Points

func Points(games []string) int

func PositiveSum

func PositiveSum(numbers []int) int

func QuarterOf

func QuarterOf(month int) int

func RepeatStr

func RepeatStr(repetitions int, value string) string

func Solution

func Solution(word string) string

func SquareOrSquareRoot

func SquareOrSquareRoot(arr []int) []int

func SquareSum

func SquareSum(numbers []int) int

func SubtractSum

func SubtractSum(n int) string

func ToAlternatingCase

func ToAlternatingCase(str string) string

func TwoSort

func TwoSort(arr []string) string

func Well

func Well(x []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL