DivyaJuly LeetCoding Challenge Day 16 — Pow(x,n)Implement pow(x, n), which calculates x raised to the power n (x^n).Jul 17, 2020Jul 17, 2020
DivyaJuly LeetCoding Challenge Day 15 — Reverse Words in a StringGiven an input string, reverse the string word by word.Jul 15, 2020Jul 15, 2020
DivyaJuly LeetCoding Challenge Day 14 — Angle Between Hands of a ClockGiven two numbers, hour and minutes. Return the smaller angle (in degrees) formed between the hour and the minute hand.Jul 15, 2020Jul 15, 2020
DivyaJuly LeetCoding Challenge Day 13 — Same TreeGiven two binary trees, write a function to check if they are the same or not.Jul 15, 2020Jul 15, 2020
DivyaJuly LeetCoding Challenge Day 12 — Reverse BitsReverse bits of a given 32 bits unsigned integer.Jul 15, 2020Jul 15, 2020
DivyaJuly LeetCoding Challenge Day 11- SubsetsGiven a set of distinct integers, nums, return all possible subsets (the power set).Jul 14, 2020Jul 14, 2020
DivyaJuly LeetCoding Challenge Day 10 — Flatten a Multilevel Doubly Linked ListYou are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may…Jul 14, 2020Jul 14, 2020
DivyaJuly LeetCoding Challenge Day 9 — Maximum Width of Binary TreeGiven a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all…Jul 12, 2020Jul 12, 2020
DivyaJuly LeetCoding Challenge Day 8–3 SumGiven an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which…Jul 9, 2020Jul 9, 2020
DivyaJuly LeetCoding Challenge Day 7 — Island PerimeterYou are given a map in the form of a two-dimensional integer grid where 1 represents land and 0 represents water.Jul 7, 2020Jul 7, 2020