Anubhav JanaGDB debuggingHow to debug your C program using break statements ?Aug 15, 2022Aug 15, 2022
Anubhav JanaLeetcode — K closest elementsGiven a sorted integer array arr, two integers k and x, return the k closest integers to x in the array. The result should also be sorted…Jul 17, 2022Jul 17, 2022
Anubhav JanaLeetcode — Farthest Building you can reach || Priority Queue || Min HeapYou are given an integer array heights representing the heights of buildings, some bricks, and some ladders.Jul 17, 2022Jul 17, 2022
Anubhav Jana121. Best Time to Buy and Sell StockYou are given an array prices where prices[i] is the price of a given stock on the ith day.Jul 15, 2022Jul 15, 2022
Anubhav Jana322. Coin ChangeYou are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of…Jul 15, 2022Jul 15, 2022
Anubhav JanaMedian of 2 sorted arraysGiven two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.Jul 14, 2022Jul 14, 2022
Anubhav JanaLeetCode — Reverse IntegerGiven a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit…Jul 13, 2022Jul 13, 2022
Anubhav JanaIs a given binary tree symmetric?For example, this binary tree is symmetric:Jul 12, 2022Jul 12, 2022
Anubhav JanaLeetCode — Binary Tree Right ViewGiven the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered…Jul 12, 2022Jul 12, 2022