This weblog is transfered to vahidkhalkhali.wordpress.com.
This weblog is transfered to vahidkhalkhali.wordpress.com.
Balanced Brackets https://www.hackerrank.com/challenges/balanced-brackets/problem Queue using Two Stacks https://www.hackerrank.com/challenges/queue-using-two-stacks/problem Merge two sorted linked lists https://www.hackerrank.com/challenges/merge-two-sorted-linked-lists/problem
Problem Jesse loves cookies and wants the sweetness of some cookies to be greater than value . To do this, two cookies with the least sweetness…
Problem There is a given list of strings where each string contains only lowercase letters from , inclusive. The set of strings is said to be…
Problem Huffman coding assigns variable length codewords to fixed length input characters based on their frequencies. More frequent characters are assigned shorter codewords and less frequent…
Problem Complete the function in the editor below, which has parameter: a pointer to the root of a binary tree. It must print the values in the…
There are three main tools for debugging in Python. In Python version less than 3, it was common to use the set_trace() command for making…
One of the very important questions in the deep learning is what model is the best. There are two well-known methods to find the best…
There are some tools for profiling the PyTorch codes. PyTorch Profiler This can generate almost all is happening in PyTorch codes, such as CPU, GPU,…
There are several ways to plot interactively in JupyterLab. Altair Plotly Bokeh ipywidgets Between all the above, I found ipywidgets easier to use than the…