Prove that cot (π/4 - teta )= cos2tata /1-sin2tata and hence find the value of cot 15 degree
Can you print spiral number patterns using only loops (for/while), conditions (if/else) and basic maths? i.e. *without the use of libraries/data structures/arrays*
sample input :4 sample output:
1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7
Input array: [-2,1,3,5,6,7,8,10,12,15,17,19,20] Sum : 20
Output
6, 12 3, 15 1, 17 -2, 20 8, 10
Required best time complexity and effective code