Skip to main content

Posts

Showing posts from February, 2018

Bubble Sort Algorithm in C

BUBBLE SORT  : Bubble sort is one of the simple sorting algorithm that sometimes referred to as sinking sort . It compares each pair of adjacent element and swaps them if they are in wrong order. Let us take an unsorted list of elements and sort them by applying this algorithm. Elements of the array -                                                                 9        3        6       7       1        5 Pass 1:                    9       3       6       7       1        5       arr[0] > arr[1], Exchange                   3      9       6        7       1        5       arr[1] > arr[2], Exchange                   3      6      9        7        1        5       arr[2] > arr[3], Exchange                   3      6      7        9         1         5       arr[3]> arr[4], Exchange                   3      6      7       1        9         5        arr[4]> arr[5], Exchange                       3      6       7       1       5        9 Pass 2:  

Selection Sort Algorithm in C

SELECTION SORT : There are several methods for sorting an array, selection sort is one of them. Let us take an unsorted list of elements and sort them by applying this algorithm. Elements of the array -                                                                   9        3        6       7       1        5 Pass 1:               9        3       6       7       1        5                 arr[0] > arr[1],  Exchange               3        9        6        7       1        5                 arr[0] < arr[2]               3        9       6       7        1        5                 arr[0] < arr[3]                3        9       6       7        1         5                 arr[0] > arr[4], Exchange               1        9       6       7       3        5                  arr[0] < arr[5]               1       9       6       7       3        5 Pass 2:                1        9         6        7       3        5                 a

How to customize header part of storefront theme in wordpress?

Solution:  You can easily customize storefront theme from functions.php of storefront child theme. With the help of storefront_header hook you can do that. The following code is used to remove storefront header default features- add_action("after_setup_theme", "storefront_child_header_remove"); function storefront_child_header_remove() {     remove_action("storefront_header","storefront_site_branding",20);     remove_action("storefront_header","storefront_secondary_navigation",30);     remove_action("storefront_header","storefront_product_search",40);     remove_action("storefront_header","storefront_primary_navigation_wrapper",42);     remove_action("storefront_header","storefront_primary_navigation",50);     remove_action("storefront_header","storefront_header_cart",60);     remove_action("storefront_header","storefront_pri