sohesh doshiSingleton Design PatternA Singleton is a design pattern that restricts the instantiation of a class to a single object. This is useful when exactly one object is…2 min read·Dec 20, 2022----
sohesh doshiPython:- The best way to get file-type.bad code to get file-type:-1 min read·Jul 3, 2021----
sohesh doshiPython-DB Connection in Class Wrapper.This class uses pymysql package to do the database interaction.1 min read·Jul 27, 2020----
sohesh doshiDP Amazon Interview QuetionA frog jumps either 1, 2 or 3 steps to go to top. In how many ways can it reach the top.1 min read·Jan 7, 2020----
sohesh doshiWalmart Interview Question Solve using DPGiven an M X N matrix with your initial position at the top-left cell, find the number of possible unique paths to reach the bottom-right…1 min read·Jan 5, 2020----
sohesh doshiDP Problem (Count distinct occurrences as a subsequence)Given a two strings S and T, find count of distinct occurrences of T in S as a subsequence.1 min read·Jan 5, 2020----
sohesh doshiDP ProblemGiven a number n, we can divide it into only three parts n/2, n/3, and n/4 (we will consider only integer part). The task is to find the…1 min read·Jan 4, 2020----
sohesh doshiDP Solution for Number of subsequences of the form a^i b^j c^kNumber of subsequences of the form a^i b^j c^k1 min read·Jan 4, 2020----