Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

Today's agenda

Into to 2D Arrays
Point matoin how wise
Point matoin Colwise
Point matin in waveform

Assaylist IDynamic allay


I Intro

foÉÉÉÉÉÉeIve
DSA
mid semester mom
p
I 99 100 I 98 1

I
1 1
1
so
99
I 95
100
I 93
I 98
I
I

gg I 40 30 1 25 I

1 Syntax

into c an new into c 3

as o 3 ask 133 30
o o É s o

1 O o o 030 ago 33 2

off
O O O O
2
3 0 o
O o o o
4
5 4 20 elements
a Point matin how wise
Point the given math fra rowwise
O I 2 3 y

j o 10 20 30 40 50 10 20 304050
as 4
I 60 70 80 go 100 Go 70 80 90100
2 110 120 130 140 150
110 120 130 14015
3 160 170 180 150 200
4 5 160 170 180 15020

0,0 1 0 2,0 3,0


0,1 I 2,1 3,1
It
0,2 11221 2,2 3,2
0,3 1,3 2,3 3,3
t
o y It 2,4 3,4

Lint i O
g itt
2
for n

forCj O jam jtD


System out point asssizeja
I c 01
s c Ocd

gysen.at point
3
J
as o I 2 3 Y

i O ien g itt 10 20 30 40 50
for int jam jtd
o

foolj O
I 60 70 80 go 100
systemoutpoint'lasssispt
9 2 110 120 130 140 50

3 160 170 180 190 200


4 5

3
Systemout pointinl
i i
10 20 30 40 50 0

60 70 80 90 100 0
2
3
110 120 130 140 150
4
160 170 180 190 200 5yenit

I
2
1 3
4
syenit

I
2 2
3
4
syenit

I
3
2
3
4
syenit
6
exit
Break till 9 34Pra
a Point matin Colwise
Point the given math fra colwise
O I 2 3 y

y 538 0 10 20 30 40 50
a 10 60 110 160
I 60 70 80 go 100
20 70 120 170
2 110 120 130 140 150
30 80 130 180
3 160 170 180 190 200
40 90 140 190
50 100 150 200

00 0 1 O 2 0 3 0 4
dy I I 1 2 13 1 4

I o É I 2 2 23 2 4

Ezo I 3 2 33 3 4

int
j O
jam jtt h
for
int i o ien itt
for
SC old systemoutpoint anti g D

system out Point


3
a Point matin in wave
form
Point the given math fra in wave
O 2 I 3 y
form
15 0 10 20 30 40 50 L R 7 10 20 30 40 50
as 4
1 60 70 80 90 100 R L 3 100 90 8070 60

2 110 120 130 140 150 L R 110 120 130 17015

3 160 170 180 190 200 R L 200 190 180 170 16

L R O 2,4 even low


R L I 3,5 odd how

even no no divisible by 2

Lint i O
g itt
2
for ii 2 032
n

if
System out point asssizeja
g
T.ci 01mm 3
Scioli else I
pose j.m.ae ja 95 71
System out point asssizeja

System out pointless


3
O I 2 3 y

o 10 20 30 40 50
I 60 70 80 go 100
forLint i O n g itt 2
2 110 120 130 140 150
jiffy gem ja
200
Systemout point'lasssizeja
3 160 170 180 190

3
Use
forcjimyjs.gg 31 d
Systemout point'lasssizeja
o
g I
System out pointless
o
3
5
exit
10 20 30 40 50
100 go 80 20 60 4
3
I 2
I

2 2
3
4
5
void main C I soft

int C Tarr 4 410,203 Boyd 30 401

System out pointlmfaoooo 710


fun att Heap
moment men
3

Public static void


fun into C mum I
qq.ge
numlo o too
am oft
Stacie
3
int I am new int fro

I Assaylist or
Dynamic array

Array list Integer list en


Avray lista c
0 I 2
1 10 20 30

list add 103


list add 20 TC Oca
list add go

11 To access index 11 update the value


S OP list get Cape 20
list get 2 o

T.ci OC list Set A 2003


Tc o a

limo element II inden


of remove
list Size c list remove ida
T.ci OC
list
remove last ion 70117
a
I go to 34 ÉÉ
remove 0th inn oh
list Remove 2

in the background is
Arraylist just Arraybeing
used Smartly
I Doubt session

mandiff2 manfaroli aol.pt i j

aaei.aXdiff3 ma g.gg

mandiffM man lanfiJ aor9jJ ati j


k
man anti ang loaf ang
In man on 2
I
manfaroli ang as 9.3 a21
181 man 8 8 28
I int
1 81 man 8 877 8 aol 3 anfj.fi
man
asrljJ
asrfiFtijin
tgsuap i
i
anti ang j
di
410 20 13 3 1 353

man
rod lot 20
2ndman d 01013

You might also like