Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Exercises and Quizzes for Data Structures and Algorithms, Exams of Nursing

A collection of exercises and quizzes designed to test understanding of fundamental data structures and algorithms. It covers topics such as arrays, linked lists, stacks, queues, trees, graphs, sorting, and searching. The exercises are presented in a clear and concise manner, with solutions provided for most of them. This resource can be valuable for students studying data structures and algorithms, helping them solidify their knowledge and prepare for exams.

Typology: Exams

2024/2025

Available from 03/18/2025

reuben-kahuro
reuben-kahuro 🇺🇸

1

(1)

1.1K documents

1 / 15

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
2345728729
!
"#$3722%&"$%2
'()*+,-../*)-0+0+10///0,*)023.42-02)*563)*78+232,-*+9:-*1*73,,.;*)+2-*
<.647<32-0=0470>*?4.<34>2-0232<3//,.1@.)22-*,-3/72.-0;*32,.;*)*79
A-023+2-*7*;*/.(1*420/)*0+.4@.)2-3+342*);*423.4B
CDEF)*+,-../*)+0)*10>3,0/2-34?*)+047310>34*=0470>*+?**(2-*3)34+37*+@).1
,.134>.62
GDEF)*+,-../*)+@*0)(-H+3,0/73+0=3/32H047=*/3*;*0=0470>*<3//()*;*4273+0=3/32H
IDEF)*+,-../*)+*J(/.)*.)0//H047<3///3?*/H,-*<.)+6,?.42-*+232,-*+3@/*@2
64,.;*)*7
KDEF)*LMNOOPM:
'QL1.42-L./7()*+*42+2.2-**1*)>*4,H7*(0)21*42<32-0,.1(/0342.@@*;*)9
'++*++1*42)*;*0/+0(02*4203)<0H047+/3>-2,H04.+3+0).647-3+/3(+047403/
=*7+9R*3+0/*)2047342*)0,23;*9R3+;320/+3>4+0)*ST9UVMWXYX9SVZ[\ROXS]\
OOS8\^FQT_U]11R>\047`(N8T]a9:-*1*73,4.2*+0-*0/*7+6)>3,0/+,0)
.4-3+,-*+29^0+*7.42-3+0++*++1*42\<-023+2-*1*73,b+()3.)32HB
CDE'71343+2*)3=6().@*42.2)*022-*@*;*)
GDE^*>34.JH>*4;3004.4)*=)*02-*)10+?
IDEN=20340+6)>3,0/-3+2.)LMNOOPM:
'4XXLH*0)L./7()*+*42+2.2-**1*)>*4,H7*(0)21*42<32-0,.1(/0342.@-32234>
-3+-*07<-3/*(/0H34>+.,,*)9:-*1*73,*42*)+2-*)..1047(*)@.)1+040,).++L
2-*L)..10++*++1*429R*3++20)34>022-*<0//9R*-0+4.34,)*0+*7<.)?.@
=)*02-34>\047-3+,./.)3+(34?9c+34>2-*(*7302)3,0++*++1*422)304>/*WF':[\
<-02,/0++3@3,023.4<3//2-*1*73,0++3>4B
'9A*//
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Exercises and Quizzes for Data Structures and Algorithms and more Exams Nursing in PDF only on Docsity!

A- 02  3 + 2 -  7 ;/.( 1 * 420 /) 0 +. 4 @.) 2 - 3 + 342 ); 423. 4 B

CDEF)+,-../)+ 0 ) 10 > 3 , 0 / 2 - 34 ?)+ 047  310 > 34 = 0470 >+?**( 2 - * 3 ) 34 + 37 *+@). 1 

GDEF)+,-../)+@* 0 )(-H+ 3 , 0 / 73 + 0 = 3 / 32 H 047 =/ 3 ; 0 = 0470 >< 3 //(); 42  73 + 0 = 3 / 32 H

IDEF)+,-../)+J(/.).) 0 //H 047 < 3 /// 3 ?/H,-<.)+ 6 ,?. 4  2 - + 232 ,-+ 3 @/*@ 2 

KDEF)*LMNOOPM:

'QL 1. 42 - L./ 7 ()+ 42 + 2 . 2 -  1 )> 4 ,H 7 ( 0 ) 21 * 42 < 32 -  0 ,. 1 (/ 0342 .@@;*) 9 

'++++ 1 * 42 );* 0 /+ 0 ( 02 * 42  03 )< 0 H 047 +/ 3 >- 2 ,H 04 .+ 3 + 0 ). 647 - 3 +/ 3 (+ 047  403 /

=* 7 + 9 R 3 + 0 /) 2  047  342 ) 0 , 23 ; 9 R 3 +; 320 /+ 3 > 4 + 0 )*ST 9 UVMWXYX 9 SVZ[\ROXS]\

OOS 8 \^FQT_U] 11 R>\ 047 `(N 8 T]a9:- 1 * 73 , 4. 2 + 0 - 0 / 7 + 6 )> 3 , 0 /+, 0 )

. 4 - 3 +,-+ 29 ^ 0 + 7 . 4  2 - 3 + 0 ++++ 1 * 42 \<- 02  3 + 2 -  1 * 73 ,b+() 3 .) 32 HB CDE' 71343 + 2 ) 3 = 6 ().@ 4  2 . 2 ) 02  2 - @;)

GDE^> 34 .JH> 4 ; 30  0  4. 4 )=) 02 - ) 10 +? IDEN= 2034  0 + 6 )> 3 , 0 /- 3 + 2 .)LMNOOPM:   ' 4 XXLH 0 )L./ 7 ()+ 42 + 2 . 2 -  1 )> 4 ,H 7 *( 0 ) 21 * 42 < 32 -  0 ,. 1 (/ 0342 .@- 32234 >

  • 3 +-* 07 <- 3 /(/ 0 H 34 >+.,,) 9 :- 1 * 73 , 42 )+ 2 - ).. 1  047 ()@.) 1 + 04  0 ,).++L 2 - L).. 1  0 ++++ 1 * 429 R 3 ++ 20 ) 34 > 02  2 - < 0 // 9 R- 0 + 4 . 34 ,)* 0 +* 7 <.)?.@ =)* 02 - 34 >\ 047 - 3 +,./.) 3 +( 34? 9 c+ 34 > 2 - ( 7302 ) 3 , 0 ++++ 1 * 42  2 ) 304 >/WF':[\ <- 02 ,/ 0 ++ 3 @ 3 , 023. 4 < 3 // 2 -  1 * 73 , 0 ++ 3 > 4 B' 9 A//

      !!"#$%! &!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

      !!"#$%!

&!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

A 89 B0<< > C> 6 &   & @B

D 89 B 5 &  6>CC@B

789 B   C>&B

= 89 B5   &E&   

>@B/ 33 (

A 89 * & &

D 89 F &  

'E ;E &E&E ;

<<;>G 6 < & 

A 89 : &

D 89  &<

      !!"#$%! &!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

      !!"#$%!

&!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

9  @&.A

& & & B7B

@  7   B&& 7  6 

B 7   &

 C @    6 7

D&  2  7  E*' 7 B 3 'B 33 

 'B+&/ 33 (

9 % C& D 7 & F 3 & G

F(DG+&  BDB 7  7 B

 7 B 0  & 

H<= ( 6 &&

;<= @D

0  7 A& & 

H<= 9 %FGB& &D 7

7 7 &  B&   7  7 

;<= 9  &&DB&  D

B&   7 

      !!"#$%! &!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

      !!"#$%!

&!''    ''%'()(+,-(+./)+0./$ 1 (( 2 ( 3. 4 .( 5 +/ 1 - ./)+ 6'

>?@-&& ; A#.B 

C?@+9:

D?@ 1 &/ 33 (

E; 6 ; 9  6 & 8  ;

& <; 6 :F 4  

&& 8   0 G:

C?@/ 9  

D?@/ 6 & ; 9   9 : 

H?@/ &; / 33 (

:-;I&+E 3 ;<; ; 

C?@J  

D?@3 

H?@K9/ 33 (