Skip to document

Must do questions - programming

programming
Course

Data Analytics - Trainity

28 Documents
Students shared 28 documents in this course
Academic year: 2022/2023
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Visvesvaraya Technological University

Comments

Please sign in or register to post comments.

Preview text

Must Do Leetcode

100

Problems



####### "!%%

####### ! ! "  $

####### " !$  " $

####### #   %   !

&

 Given an array of integers and an integer target, return indices of the two numbers such that they add up to target.

PracticePractice

D You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form a container, such that the container contains the most water. Return the maximum amount of water a container can store.

PracticePractice

H Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.

PracticePractice

~ Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or equal to target. If there is no such subarray, return 0 instead.

PracticePractice

3

                         

!!

'

                                       



. 3     



@          >    L>          3    C      



g     ihiiei  a   _   v        hihi iei    e            



z

                       

    

&

                                        

!!

'
  

% "! # #!## #$!## ! ## ## ! ! ##$ # 

'!'!

<% "! # #! #M# ## !9# # ##! I# N #2#$#/ B#! ### # ! # !# #- ##! # ! # M# 

'!'!

k% "! # #M# ## !! #! # ###! # ! #Q# # ## $#! # M# 

'!'!

€% "! ##! ##!! ####M# ! ###!! #!## ! • - ##! #! #!!! ##

'!'!

‰ˆ
 

& #!$$$$!$$$$!$$$!!$$ $%$ $$$$$ $$ $$$$$! $%$$"$$!$$ $$$$$$$%! $$$$%$!$$

(!(!

;& #!$$$!$$$$$$!!$ !!$! $$! $$!$$$!$C0/$!$$$ $"$ 

(!(!

V& ]!$$$$$%$$!$$$b$S$ W$0bSW/$

(!(!

hg

". )$ ,#,# ,, #!#',, # , ##,, , ,, $#, ##, ,, #,',',-,, ,#, #,,#, $$ ,$ $ ,#,#&

+,,,,-% ,, ,, ',  -,, ,,

#  ,#, (#,$,  #,#, #

0#0#

76

                                                    



: <      4    ,          4    (  '&  ,  &   5  '  '  4     ' 4    



M <   4 ',      L      4  &  H



„ ~      ny    ,    4'mL i Še ~       • ,   '    '   ny 'y...d...   ny      



•Œ
  

"         !

$ ''$ ''

  •    5+'!

$ ''$ ''

W    ^ ''M J '' ^'5 '5'Fb+ !U  + bEb+  ''!D+++ ^ M C   ''!_ F   !

$ ''$ ''

  • † F qvM k F !J5^5 +' h FM C ^ !

$ ''$ ''

Š‰

                   



B;    0 A   4    4- /4    4     /#             D               9 /4    4   0    $     0 



g                 \             J         P 0           $           9 H        F          0 



ih
      


*. ,+!'$-"$-"))"%-$ &-$("+$+$-$-+(+$(-$ &')-+$-('-)"$'--$- )'( )$-('-$#%-$ &')-+$-('-)"$'-("(-+-&++$-)&-('-"))"%

0)"(+'0)"(+'

J. ,+!'$-"$-+$('')-$-)'( )$-"$-"))"%-"$--#'$(-$-F-A- -("(-)-'"-+- <-UD-+-UD-$:-"$+-+-('-$ &')--A6-+$-('-+$")%-)'@)''$("(+$--+

0)"(+'0)"(+'

w. ,+!'$-"-$$f'&@(%-"))"%--+$('')-$ &-'!')%-'#'&'$(-"@@'")-(t+'- 'n'@(-)-$'-l+$-("(-+$#'-$'b Y -& (-+&@#'&'$(-"-# (+$-t+(-"-#+$'")-) $(+&'-&@#'n+(%-"$- '- $#%-$("$(-'n()"-@"'

0)"(+'0)"(+'

Š. ,+!'$-(t-+$('')-"))"%-$ &A-"$-$ &„-)'( )$-"$-"))"%--('+)- +$(')'(+$-y"-'#'&'$(-+$-('-)' #(-& (-"@@'")-"-&"$%-(+&'-"-+(- t-+$-(-"))"%-"$-% -&"%-)'( )$-('-)' #(-+$-"$%-)')

0)"(+'0)"(+'

—–
Was this document helpful?

Must do questions - programming

Course: Data Analytics - Trainity

28 Documents
Students shared 28 documents in this course
Was this document helpful?
Must Do Leetcode
100
Problems