calculate the number of values in the triangle that
are different from 1 and less than or equal to K.
k>=2

                                                1                               
                
                                        1               1                       
                
                                1               2               1               
                
                        1               3               3               1       
                
                1               4               6               4               
1               
        1               5               10              10              5       
        1       
1               6               15              20              15              
6               1

e.g
for k=2
ans is 1
and k=6
ans is 10

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to