50 Days Coding
50 Days Coding
Curated by
! %$"#
oP('&*l*(7l*('aA(_,;;:*(+A;*EN(l*'nl+(VR(+A;*k
pvtVV z"|~$"yx~w
!tRRtvv %$"#
Ö(²,+7lO('l**½E(RtRR(,E('&*(+n_²*l(AP(+A;*E(7:A+<('&¿
:A+<*E'(´7'&(PlA_('&*(lAA'(+A;*(;Aa+('A('&*(P7l'&*E'(:*7P(+A;*k
pvtVV z"|~$"yx~w
óVtvRvtvVâåtvVtvããv
ãVRvtvâvtRRâÚÙØtvvñVt
tRtØtV×åãVvtvVññtÚ
Question 3
Add Binary Easy
Given two binary strings a and b return their sum as a binary string. s
Question 4
Diameter of Binary Tree Easy
Given the root of a binary tree, return the length of the diameter of the tree.
The diameter of a binary tree is the length of the longest path between
any two nodes in a tree. This path may or may not pass through the root
From To
Anjali Joshi
Data Engineer - L2 at Twilio
ÆÅmÃk¿½
&% (') ,+ ,652052021/2-53+ ;5207
@>=) 3GDC/F,6CA
N PORQTWOLRY
RRPO&WPbLLW%LLOLLJbLWbe
jlklm t{} v|yzx s}rx|zq
ÆÅmÃk¿Ç
~ml
WR ' ObOb&
>() &R%bbO >() ' e R >()
J&O%JeO&% ¤£ e
´%Q%LOQO ·º=¸¶» %QbQPLJWe
gg ovxqwtusnxmswul
{ gg§
g
¾ g½ ¾ g½
º´® ggÑÀ§ Â
Qu ´ ³ 8
<=:<=@=69@89;=8:7>=584352=81?89;=8703/=.
M89;=8017?7=8703/=83?9=<8:=<?1<076/89;=8?5118?755.
¤¦¥¢£¡¦¡¥£
Qu ´ ³ 9
¶´±®®³¯³´v¨ ³§
Àº½
¤¦¥¢£¡¦¡¥£
Question 10
Question 11
Given head , the head of a linked list, determine if the linked list has
a cycle in it.
There is a cycle in a linked list if there is some node in the list that can be
reached again by continuously following the next pointer . Internally, pos
is used to denote the index of the node that tail's next pointer is connected
to. Note that pos is not passed as a parameter.
Return true if there is a cycle in the linked list. Otherwise, return false .
Suppose you have n versions [1, 2, ..., n] and you want to find out
the first bad one, which causes all the following ones to be bad.
Tutort Benefits
?!& " 4 ! "&" @ A "+ &E !4 B E!4
fzx
Question 16
Kth Smallest Element in a BST Medium
Best part about this academy is that before joining the program you can talk with the
Data Scientist. They have projects from companies so you will work on Real-Time
Projects and also got many job referrals from Tutort Academy & got a job as at EY.
Question 17
Question 18
repeating characters.
xk[oXojywwX[X{j|vjuVk[V
jZVjvoVX YVYjWZXnWXj¢
XoZn YWZnXj§XY[nZn
¹´´jVYW¸jZV ¹´´jVYW¸jYVYj
µ¯© WZXnWXjÌ»j¢j§½
Question 20
Given the root of a binary tree, return the level order traversal
of its nodes' values. (i.e., from left to right, level by level).
Tutort Benefits
"!!! ! #
+ !)'!.(
¯VX9=¨¨
U\V9R\ X8=XM99=
]]+].]
]]
Ïu Ñ
There are a total of numCourses courses you have to take, labeled from
Return true if you can finish all courses. Otherwise, return false .
Question 24
void insert(String word) Inserts the string word into the trie.
boolean sear ch(String word) Returns true if the string word is in the trie
Return the fewest number of coins that you need to make up that amount.
If that amount of money cannot be made up by any combination
of the coins, return -1
Question 26
Product of Array Except Self Medium
Given an integer array nums return an array answer such that answer[i]
is equal to the product of all the elements of nums except nums[i]
You must write an algorithm that runs in O(n) time and without using
the division operation.
íì©êåæò
¿ÉÇ©À¬¾©¬»º¬©©
h4E'44c!!:c''$(=3!'4/:!0'$(8:83 '}83y
E'4<:!g:3EE(:!!38EE(ve:c0(44c0EE/:c!' 4:/3< !'y
!EE4c!!:c''$(=3!v
ß àä
G !7!43 073(8EE`
> !7!43 /!4<:! `:!
¬ !7!43 !:33:! v
¸3c!3<00c0c0$!:/0c343<30c43E74c3E:8EE
<4/!4<:! vÄ/3<4407:44$E`!3c! Ô>
Question 31
There is an integer array nums sorted in ascending order (with distinct values).
Given the array nums after the possible rotation and an integer target
return the index of target if it is in nums , or -1 is not in nums
Question 32
Given an array nums of distinct integers, return all the possible permutations.
You can return the answer in any order.
Question 34
Merge Intervals Medium
The courses well structured, and I use them to learn new things every day as well as revise
concepts by solving multiple problems. It also helps you a lot when preparing for an
interview because most of the questions were similar to which I solved during the course.
R ¤£
5:4."-/-*:"/81-08..3-,:"+-0'.-%92.$0-#9((9"-/"#.$098- 6&-9,-029-):4.!
"9+.$-:"-0'.-08..7
; EHGJKIFHDIKB
R ¤¯
Z Y XT SR Q
q(l%.(."0-0'.-m:(.d/l-#%/$$b
{zyxwutsv q":0:/%:.$-0'.-08:.-9*|.#07
¢zxszxz¢u xzzyxuytv
zxszxzzyxuytv
; EHGJKIFHDIKB
Q 37
'.'.m.=',))^`
.'.==,))^X.^.,))^,/=.'~
,.'),))^,'XW,.,'
q s p
Q 38
¯ ¬ «
ãm),{Á),')..WÁ)X/,,).
,.W..WX/,XW{^`
ü^'^,m.{'/,^^=,{..²ô.^)`
Question 40
From To
Avishkar Dalvi
MTS 3 at VMware
µ `DEO¯«
[=G]`] e hg jkifhd i kb
µ `DEO¯¸
x`EG=>O~= Ot`usO`< Ow` o
[=G]`] e hg jkifhd i kb
O IE
;>=@A?<>:?A8
Given the two integers m and n , return the number of possible unique
paths that the robot can take to reach the bottom-right corner.
Tutort Benefits
*+%'#!#(+%#''))#!!"''#!&)#($+(#
"$+)#(#(!+#(!"%#''))!'+%'#!#(+%
"$+"%#''))(
1"6%/)$" BAA@>@?=<;<:9 +%'#!#( ;
1"6%/)$" BAA@>@?=<;9 +%'#!#( G=@I@;F@E@=@>@=KC
M OO W^`ZY_\][ZV`[_]T
y46
h a
M OO W^`ZY_\][ZV`[_]T
À ¾¼»
*=*&&*=!=1=*&21*=&0
A D KRTNMSPQO NJTOSQH
À ¾¼Á
h e ffA ^ ]\[YWDZ ]b
&1=y1&*++ 0
A D KRTNMSPQO NJTOSQH
ØßW ]b ÙÒDWDf [Ø × ZDf¾ÍÌ [D^ DD] ]b¾ Ê ^ D
DÒ DßDZ[¾ À Y D] ]ZYD]Z¾ D fDÊ ÈD ^ ffÊ ] D ß W f
Merge all the linked-lists into one sorted linked-list and return it.
Day 50
height where the width of each bar is 1 , return the area of the largest
n
%
nÃ
GE¥zw%E¦G %5 ¶ zw%wz z
¦%¨% ±z%¦%¥% 5%
lnnm