{"push_id":955873728,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"9299a308fa78692cc097ecce00b2862ac0aa2499","before":"f83c0fe45f5d666fc033efd5d2abdab55c1124d0","commits":[{"sha":"9299a308fa78692cc097ecce00b2862ac0aa2499","author":{"email":"d9ceb5d0185002cb865e1e01e675f0e82089ed9c@users.noreply.github.com","name":"J.G"},"message":"Create 38. Count and Say.cpp\n\n\"Count and Say problem\" Write a code to do following: \r\nn String to print \r\n0          1  \r\n1          1 1  ：1个1 \r\n2          2 1 ： 上面为2个1\r\n3           1 2 1 1  ：上面为1个2，1个1\r\n... \r\nBase case: n = 0 print \"1\" \r\nfor n = 1, look at previous string and write number of times a digit is seen and the digit itself. In this case, digit 1 is seen 1 time in a row... so print \"1 1\" \r\nfor n = 2, digit 1 is seen two times in a row, so print \"2 1\" \r\nfor n = 3, digit 2 is seen 1 time and then digit 1 is seen 1 so print \"1 2 1 1\" \r\nfor n = 4 you will print \"1 1 1 2 2 1\"  // 1个1，1个2，2个1\r\n\r\nConsider the numbers as integers for simplicity. e.g. if previous string is \"10 1\" then the next will be \"1 10 1 1\" and the next one will be \"1 1 1 10 2 1\" // 1个10， 1个1； 1个1； 1个10； 2个1","distinct":true,"url":"https://api.github.com/repos/killets/Algorithm-Problems/commits/9299a308fa78692cc097ecce00b2862ac0aa2499"}]}