<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[sunbocong的博客]]></title><description><![CDATA[靡不有初，鲜克有终。]]></description><link>https://blog.youkuaiyun.com/sunbocong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; sunbocong]]></copyright><item><title><![CDATA[语法练习：left2]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233916</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233916</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:28:00 +0800</pubDate><description><![CDATA[Given a string, return a “rotated left 2” version where the first 2 chars are moved to the end. The string length will be at least 2.left2(‘Hello’) → ‘lloHe’
left2(‘java’) → ‘vaja’
left2(‘Hi’) → ‘Hi’
Expected	Run		
left2(‘Hello’) → ‘lloHe’	‘lloHe’	OK	
left]]></description><category></category></item><item><title><![CDATA[语法练习：non_start]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233863</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233863</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:25:02 +0800</pubDate><description><![CDATA[Given 2 strings, return their concatenation, except omit the first char of each. The strings will be at least length 1.non_start(‘Hello’, ‘There’) → ‘ellohere’
non_start(‘java’, ‘code’) → ‘avaode’
non_start(‘shotl’, ‘java’) → ‘hotlava’
Expected	Run		
non_s]]></description><category></category></item><item><title><![CDATA[语法练习：combo_string]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233787</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233787</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:22:35 +0800</pubDate><description><![CDATA[Given 2 strings, a and b, return a string of the form short+long+short, with the shorter string on the outside and the longer string on the inside. The strings will not be the same length, but they may be empty (length 0).combo_string(‘Hello’, ‘hi’) → ‘hiH]]></description><category></category></item><item><title><![CDATA[语法练习：without_end]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233694</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233694</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:18:13 +0800</pubDate><description><![CDATA[Given a string, return a version without the first and last char, so “Hello” yields “ell”. The string length will be at least 2.without_end(‘Hello’) → ‘ell’
without_end(‘java’) → ‘av’
without_end(‘coding’) → ‘odin’
Expected	Run		
without_end(‘Hello’) → ‘el]]></description><category></category></item><item><title><![CDATA[语法练习：first_half]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233613</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233613</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:14:15 +0800</pubDate><description><![CDATA[Given a string of even length, return the first half. So the string “WooHoo” yields “Woo”.first_half(‘WooHoo’) → ‘Woo’
first_half(‘HelloThere’) → ‘Hello’
first_half(‘abcdef’) → ‘abc’
Expected	Run		
first_half(‘WooHoo’) → ‘Woo’	‘Woo’	OK	
first_half(‘HelloTh]]></description><category></category></item><item><title><![CDATA[语法练习：first_two]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233445</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233445</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:08:27 +0800</pubDate><description><![CDATA[Given a string, return the string made of its first two chars, so the String “Hello” yields “He”. If the string is shorter than length 2, return whatever there is, so “X” yields “X”, and the empty string “” yields the empty string “”.first_two(‘Hello’) → ‘]]></description><category></category></item><item><title><![CDATA[语法练习：extra_end]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233306</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233306</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 11:02:58 +0800</pubDate><description><![CDATA[Given a string, return a new string made of 3 copies of the last 2 chars of the original string. The string length will be at least 2.extra_end(‘Hello’) → ‘lololo’
extra_end(‘ab’) → ‘ababab’
extra_end(‘Hi’) → ‘HiHiHi’
Expected	Run		
extra_end(‘Hello’) → ‘l]]></description><category></category></item><item><title><![CDATA[语法练习：make_out_word]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233111</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233111</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 10:56:14 +0800</pubDate><description><![CDATA[Given an “out” string length 4, such as “”, and a word, return a new string where the word is in the middle of the out string, e.g. “”.make_out_word(‘’, ‘Yay’) → ‘’
make_out_word(‘’, ‘WooHoo’) → ‘’
make_out_word(‘[[]]’, ‘word’) → ‘[[word]]]></description><category></category></item><item><title><![CDATA[语法练习：make_tags]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128233018</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128233018</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 10:53:30 +0800</pubDate><description><![CDATA[The web is built with HTML strings like “Yay” which draws Yay as italic text. In this example, the “i” tag makes  and  which surround the word “Yay”. Given tag and word strings, create the HTML string with tags around the word, e.g. “Yay”.make_tags(‘i’, ‘Y]]></description><category></category></item><item><title><![CDATA[语法练习：make_abba]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128232873</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128232873</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 10:47:28 +0800</pubDate><description><![CDATA[Given two strings, a and b, return the result of putting them together in the order abba, e.g. “Hi” and “Bye” returns “HiByeByeHi”.make_abba(‘Hi’, ‘Bye’) → ‘HiByeByeHi’
make_abba(‘Yo’, ‘Alice’) → ‘YoAliceAliceYo’
make_abba(‘What’, ‘Up’) → ‘WhatUpUpWhat’
Ex]]></description><category></category></item><item><title><![CDATA[语法练习：hello_name]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128232806</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128232806</guid><author>sunbocong</author><pubDate>Thu, 08 Dec 2022 10:45:03 +0800</pubDate><description><![CDATA[Given a string name, e.g. “Bob”, return a greeting of the form “Hello Bob!”.hello_name(‘Bob’) → ‘Hello Bob!’
hello_name(‘Alice’) → ‘Hello Alice!’
hello_name(‘X’) → ‘Hello X!’
Expected	Run		
hello_name(‘Bob’) → ‘Hello Bob!’	‘Hello Bob!’	OK	
hello_name(‘Alic]]></description><category></category></item><item><title><![CDATA[语法练习：string_match]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128217334</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128217334</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 11:26:29 +0800</pubDate><description><![CDATA[Given 2 strings, a and b, return the number of the positions where they contain the same length 2 substring. So “xxcaazz” and “xxbaaz” yields 3, since the “xx”, “aa”, and “az” substrings appear in the same place in both strings.string_match(‘xxcaazz’, ‘xxb]]></description><category></category></item><item><title><![CDATA[语法练习：array123]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216998</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216998</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 11:09:35 +0800</pubDate><description><![CDATA[Given an array of ints, return True if the sequence of numbers 1, 2, 3 appears in the array somewhere.array123([1, 1, 2, 3, 1]) → True
array123([1, 1, 2, 4, 1]) → False
array123([1, 1, 2, 1, 2, 3]) → True
Expected	Run		
array123([1, 1, 2, 3, 1]) → True	Tru]]></description><category></category></item><item><title><![CDATA[语法练习：array_front9]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216873</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216873</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 11:03:32 +0800</pubDate><description><![CDATA[Given an array of ints, return True if one of the first 4 elements in the array is a 9. The array length may be less than 4.array_front9([1, 2, 9, 3, 4]) → True
array_front9([1, 2, 3, 4, 9]) → False
array_front9([1, 2, 3, 4, 5]) → False
Expected	Run		
arra]]></description><category></category></item><item><title><![CDATA[语法练习：array_count9]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216476</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216476</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:47:14 +0800</pubDate><description><![CDATA[Given an array of ints, return the number of 9’s in the array.array_count9([1, 2, 9]) → 1
array_count9([1, 9, 9]) → 2
array_count9([1, 9, 9, 3, 9]) → 3
Expected	Run		
array_count9([1, 2, 9]) → 1	1	OK	
array_count9([1, 9, 9]) → 2	2	OK	
array_count9([1, 9, 9]]></description><category></category></item><item><title><![CDATA[语法练习：last2]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216368</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216368</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:43:57 +0800</pubDate><description><![CDATA[Given a string, return the count of the number of times that a substring length 2 appears in the string and also as the last 2 chars of the string, so “hixxxhi” yields 1 (we won’t count the end substring).last2(‘hixxhi’) → 1
last2(‘xaxxaxaxx’) → 1
last2(‘a]]></description><category></category></item><item><title><![CDATA[语法练习：string_splosion]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216131</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216131</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:34:51 +0800</pubDate><description><![CDATA[Given a non-empty string like “Code” return a string like “CCoCodCode”.string_splosion(‘Code’) → ‘CCoCodCode’
string_splosion(‘abc’) → ‘aababc’
string_splosion(‘ab’) → ‘aab’
Expected	Run		
string_splosion(‘Code’) → ‘CCoCodCode’	‘CCoCodCode’	OK	
string_splo]]></description><category></category></item><item><title><![CDATA[语法练习：string_bits]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128216011</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128216011</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:29:42 +0800</pubDate><description><![CDATA[Given a string, return a new string made of every other char starting with the first, so “Hello” yields “Hlo”.string_bits(‘Hello’) → ‘Hlo’
string_bits(‘Hi’) → ‘H’
string_bits(‘Heeololeo’) → ‘Hello’
Expected	Run		
string_bits(‘Hello’) → ‘Hlo’	‘Hlo’	OK	
stri]]></description><category></category></item><item><title><![CDATA[语法练习：front_times]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128215752</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128215752</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:21:35 +0800</pubDate><description><![CDATA[Given a string and a non-negative int n, we’ll say that the front of the string is the first 3 chars, or whatever is there if the string is less than length 3. Return n copies of the front;front_times(‘Chocolate’, 2) → ‘ChoCho’
front_times(‘Chocolate’, 3) ]]></description><category></category></item><item><title><![CDATA[语法练习：string_times]]></title><link>https://blog.youkuaiyun.com/sunbocong/article/details/128215614</link><guid>https://blog.youkuaiyun.com/sunbocong/article/details/128215614</guid><author>sunbocong</author><pubDate>Wed, 07 Dec 2022 10:15:39 +0800</pubDate><description><![CDATA[Given a string and a non-negative int n, return a larger string that is n copies of the original string.string_times(‘Hi’, 2) → ‘HiHi’
string_times(‘Hi’, 3) → ‘HiHiHi’
string_times(‘Hi’, 1) → ‘Hi’
Expected	Run		
string_times(‘Hi’, 2) → ‘HiHi’	‘HiHi’	OK	
st]]></description><category></category></item></channel></rss>