diff --git a/Week1/Count and Say/Divya b/Week1/Count and Say/Divya new file mode 100644 index 0000000..452f62a --- /dev/null +++ b/Week1/Count and Say/Divya @@ -0,0 +1,37 @@ +class Solution { +public: + string countAndSay(int n) { + if(n==1) + return "1"; + + string temp=countAndSay(n-1); //first get the result of n-1 number + + + int index=1; + int len=temp.length(); + char temp1=temp[0]; + int count=1; + string ans=""; + while(index