Skip to content

Thatguy560/TDD-Codewars-Kata-Exercises-JS

Repository files navigation

TDD Codewars Kata Exercises

A repository made to practice my TDD skills using some Kata I've found on Codewars. Code will be written in either JS or Ruby.

1) Ten Minute Walk Kata (JS) - 6kyu

2) Middle Character Kata (JS) - 7kyu

3) Highest and Lowest Kata (JS) - 7kyu

4) Sum two arrays Kata (JS) - 6kyu

5) Descending Order Kata (JS) - 7kyu

6) What Century Is It? Kata (JS) - 6kyu

7) Alternate Case Kata (JS) - 7kyu

8) Simple Pig Latin Kata (JS) - 5kyu

9) Larger Product or Sum Kata (JS)

10) Jumble Sentence Kata (JS) - 5kyu

11) Valid Braces Kata (JS) - 6kyu

12) Sort The Odd Kata (JS) - 7kyu

13) Reverser Kata (JS) - 7kyu

14) Get the Middle Character Kata (JS) - 7kyu

15) Sum of Two Integers (JS) - 6kyu

16) Strings to Numbers (JS) - 7kyu

17) Extract the domain name from a URL (JS) - 5kyu

18) Get Names (JS) - 7kyu

19) Time-like string format (JS) - 6kyu

20) Convert string to camel case (JS) - 6kyu

21) Area or Perimeter (JS) - 8kyu

22) split Strings - 6kyu

23) Find the divisors! - 7kyu

24) Selective Array Reversing - 6kyu

25) Split Strings - 6kyu

26) Sum of Digits / Digital Root - 6kyu

27) Your order, please - 6kyu

28) Double Char - 8kyu

29) Array diff - 6kyu

30) Find the odd int - 6kyu

31) Find the capitals - 7kyu

32) JavaScript Array Filter - 7kyu

33) Sum - Square Even, Root Odd - 7kyu

34) Square Every Digit - 7kyu

35) Lost number in number sequence - 7kyu

36) Automorphic Number (Special Numbers Series #6) - 7kyu

37) Unique In Order - 6kyu

38) String Matchup - 7kyu

39) Who likes it? - 6kyu

40) Disemvowel Trolls - 7kyu

41) Replace With Alphabet Position - 6kyu

42) Ones and Zeros - 7kyu

43) Counting Duplicates - 6kyu

44) Moving Zeros To The End - 5kyu

45) Mumbling - 7kyu

46) Exes and Ohs - 7kyu

47) Super Duper Easy - 8kyu

48) Number of People in the Bus - 7kyu

49) Remove the minimum - 7kyu

50) Don't give me five! - 7kyu

51) The highest profit wins! - 7kyu

52) altERnaTIng cAsE <=> ALTerNAtiNG CaSe - 8kyu

53) CamelCase Method - 6kyu

54) Sum of Positive - 8kyu

55) Stop gninnipS My sdroW! - 6kyu

56) Find the next perfect square! - 7kyu

57) Find the unique number - 6kyu

58) WeIrD StRiNg CaSe - 6kyu

59) Credit Card Mask - 7kyu

60) Regex validate PIN code - 7kyu

61) Find the missing letter - 6kyu

62) Mexican Wave - 6kyu

63) Rock Paper Scissors! - 8kyu

64) Two Sum - 6kyu

65) Categorize New Member - 7kyu

66) Format a string of names like 'Bart, Lisa & Maggie'. - 6kyu

67) Roman Numerals Decoder - 6kyu

68) The Hashtag Generator - 5kyu

69) Count the smiley face! - 6kyu

70) Find numbers which are divisible by given number - 8kyu

71) Alternate capitalization - 7kyu

72) Validate Credit Card Number - 6kyu

73) Data Reverse - 6kyu

74) Sum of a sequence - 7kyu

75) String Array Duplicates - 6kyu

76) Simple Fun #396: Find the Longest Substring Consisting of Unique Characters - 6kyu

77) Correct Capitalization - 7kyu

78) Number to digit tiers - 7kyu

79) Hells Kitchen - 7kyu

80) Double Sort - 7kyu

81) Pairs of Bears - 6kyu

82) Simple Letter Removal - 7kyu

83) Char Code Calculation - 7kyu

84) Find Screen Size - 7kyu

85) 1RM Calculator - 6kyu

86) Who is going to pay for the wall? - 8kyu

87) Count IP Addresses - 5kyu

88) Weight for weight - 5kyu

89) Spoonerize Me - 7kyu

90) Human Readable Time - 5kyu

91) Elapsed Seconds - 7kyu

92) Mean Square Error - 5kyu

93) Simple Fun #256: Two Arrays Nth Element - 6kyu

94) Write Number in Expanded Form - 6kyu

95) Shifter words - 7kyu

96) Get the integers between two numbers - 7kyu

97) Evens times last - 7kyu

98) Number of trailing zeros of N! - 5kyu

99) Over The Road - 7kyu

100) number with 3 roots - 7kyu

101) If you can read this... - 6kyu

102) Roman Numerals Encoder - 6kyu

103) Total amount of points - 8kyu

104) Sort by Last Char - 7kyu

105) Is there a vowel in there? - 8kyu

106) All Unique - 7kyu

107) Sum of odd numbers - 7kyu

108) List Filtering - 7kyu

109) To square(root) or not to square(root) - 8kyu

110) Small enough? - 7kyu

111) Rotate for a max - 7kyu

112) Tap Code Translation - 7kyu

113) Inside Out Strings - 6kyu

114) Maximum subarray sum - 5kyu

115) Paul's Misery - 7kyu

116) The Office IV - Find a Meeting Room - 7kyu

117) The Office VI - Sabbatical - 7kyu

118) Drink about - 8kyu

119) All Star Code Challenge #20 - 7kyu

120) Coding Meetup #15 - Higher-Order Functions Series - Find the odd names - 6kyu

121) Which are in? - 6kyu

122) Build Tower - 6kyu

123) Harvest Festival - 7kyu

124) Find the vowels - 7kyu

125) Twisted Sum - 6kyu

126) Turn String Input into Hash - 6kyu

127) Time Converter: hours, minutes, seconds and milliseconds - 7kyu

128) Sum of Triangular Numbers - 7kyu

129) Alphabet symmetry - 7kyu

130) Greatest common divisor - 7kyu

131) Invisible cubes - 7kyu

132) Gap In Primes - 5kyu

133) Word To Binary - 7kyu

134) Find the first non-consecutive number - 8kyu

135) Coding Meetup #6 - Higher-Order Functions Series - Can they code in the same language? - 7kyu

136) Coding Meetup #9 - Higher-Order Functions Series - Is the meetup age-diverse? - 6kyu

137) Largest pair sum in array - 7kyu

138) Digit Recovery - 6kyu

139) Last Survivor - 7kyu

140) Scaling Squared Strings - 7kyu

141) Build a square - 7kyu

142) Simple Fun #265: The Janitor And His Mop - 6kyu

143) Flatten() - 5kyu

144) Format words into a sentence - 6kyu

145) Count the Digit - 7kyu

146) IP Validation - 6kyu

147) Pyramid Array - 6kyu

148) Get key/value pairs as arrays - 7kyu

149) Round by 0.5 steps - 6kyu

150) Find Within Array - 6kyu

151) MergeSort "merge" function - 5kyu

152) Most frequently used words in a text - 4kyu

153) Arabian String - 6kyu

154) Flatten - 7kyu

155) Throwing Darts - 6kyu

156) Sequences and Series - 6kyu

157) Palindrome chain length - 7kyu

158) Training JS #26: methods of arrayObject---map() - 7kyu

159 Matrix Addition - 6kyu

160 Binary String - 6kyu

161 Search in multidimensional array - 6kyu

162 Basic Calculator - 7kyu

163 Substituting Variables Into Strings: Padded Numbers - 7kyu

164 Split and then add both sides of an array together. - 6kyu

165 Simple Sentences - 6kyu

166 Return the Missing Element - 7kyu

167 Convert PascalCase string into snake_case - 5kyu

168 Plural - 8kyu

169 Pluck - 7kyu

170 Maximum Length Difference - 7kyu

171 Testing 1-2-3 - 7kyu

172 Maximum Multiple - 7kyu

173 Pretty Date - 6kyu

174 Rot13 - 5kyu

175 Sum of numbers from 0 to N - 7kyu

176 Find the middle element - 7kyu

177 Pairs of integers from m to n - 7kyu

178 Pandemia 🌡️ - 7kyu

179 Sum of angles - 7kyu

180 Remove duplicate words - 7kyu

181 Uncollapse Digits - 6kyu

182 Find The Parity Outlier - 6kyu

183 Duplicate Encoder - 6kyu

184 Persistent Bugger. - 6kyu

185 Previous multiple of three - 7kyu

Check Test Coverage

git clone https://github.com/Thatguy560/TDD-Codewars-Kata-Exercises.git

cd TDD-Codewars-Kata-Exercises

type 'npm test' to run tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published