Typed DSA

Hello World

Your first document

Welcome to the docs! You can start writing documents in /content/docs.

Introduction


const  = 1;
.(+7);
 
const  = 'Hello'
const 
const msg: "Hello, world"
msg
= `${}, world`
.l
  • log
//
const  = '123';
.(;
')' expected.
const name: string = "Aman"
const isStudent: boolean = true

1. Recurrence Relation:

T(n)=T(n1)+O(1)T(n) = T(n-1) + O(1)

2. Time Complexity - Double Sum:

O(n2)=i=1nj=1n1O(n^2) = \sum_{i=1}^n \sum_{j=1}^n 1

3. Space Complexity:

Space(n)=O(h)=O(logn)\text{Space}(n) = O(h) = O(\log n)

4. Arithmetic Sequence:

ai+1=ai+da_{i+1} = a_i + d

5. Sum of Arithmetic Sequence:

S=n2(a1+an)S = \frac{n}{2}(a_1 + a_n)
Edit on GitHub

Last updated on

On this page