7 kyu

Split In Parts

2,988 of 8,025bmw318mt

Description:

The aim of this kata is to split a given string into different strings of equal size (note size of strings is passed to the method)

Example:

Split the below string into other strings of size #3

'supercalifragilisticexpialidocious'

Will return a new string
'sup erc ali fra gil ist ice xpi ali doc iou s'

Assumptions:

String length is always greater than 0
String has no spaces
Size is always positive
Strings
Fundamentals

More By Author:

Check out these other kata created by bmw318mt

Stats:

CreatedNov 21, 2015
PublishedNov 21, 2015
Warriors Trained11982
Total Skips289
Total Code Submissions21844
Total Times Completed8025
C# Completions590
Ruby Completions426
JavaScript Completions2988
Java Completions1460
Python Completions2690
CoffeeScript Completions12
C Completions85
Total Stars159
% of votes with a positive feedback rating94% of 1129
Total "Very Satisfied" Votes1020
Total "Somewhat Satisfied" Votes92
Total "Not Satisfied" Votes17
Ad
Contributors
  • bmw318mt Avatar
  • joh_pot Avatar
  • g964 Avatar
  • NaMe613 Avatar
  • Blind4Basics Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • albertogcmr Avatar
  • trashy_incel Avatar
  • ejini战神 Avatar
Ad