by admin | Apr 2, 2021 | java
by admin | Apr 2, 2021 | DAA
Find the Height or Maximum Depth of a Binary Tree We have a binary tree structure and we need to find its height. It is defined by the distance from the root to the last downward node. Here the height is 2. Lets understand it with another example: The height of the...
by admin | Apr 2, 2021 | DAA
Construct a Tree from Inorder and Preorder Traversals We are given inorder and preorder traversals of a tree. We need to generate a tree from these traversals. Example: Inorder[] = { 3, 1, 4, 0, 5, 2 } Preorder[] = { 0, 1, 3, 4, 2, 5 } Output – 3 1 4...
by admin | Mar 22, 2021 | Git
Git Squash How to Squash? The squash command in Git is used to suppress or subdue the previous commits into one unit. It is quite interesting to note that squash is not a command in Git, instead, it is a keyword. Squash keyword is generally used to implement...
by admin | Mar 22, 2021 | Git
Git Reset: The reset command in Git is quite complex and a great tool to undo changes. There are some strict invocations or forms of undoing changes in Git. These invocations act as a management system with the staging area index, head, and the directory we are...
by admin | Mar 22, 2021 | Python
Python wx module Introduction Python provides us a wxpython module which we usually call as Python wx module. The wxpython module is allow us to create a very high functional GUI (Graphical User Interface). It is developed by Harri Pasanen along with Robin Dunn....
by admin | Mar 21, 2021 | Python
wxpython – Major Classes The original wxWidgets is written in the C++ programming language and it has a huge library for classes. The classes are used for building GUI using wxWidgets of this library. These widgets are ported to our Python program through the...
by admin | Mar 21, 2021 | Python
wxPython Panel class The Widgets which is shown in the frame of GUI window such as text box, buttons, static text etc. are put inside the panel class of the wxpython module. The panel class of wxpython module is usually put inside the frame class. The panel class of...