Skip to content

Instantly share code, notes, and snippets.

View bahaa-ka's full-sized avatar

Bahaa Kallas bahaa-ka

  • Moshbit GmbH
  • Syria
View GitHub Profile
@bahaa-ka
bahaa-ka / MainActivity.java
Last active August 29, 2018 22:18
Filter GridView/ListView That Used ArrayAdpater
public class GridViewItemAdapter extends ArrayAdapter<GridViewItem> {
// This List Will Hold Adapter Items
ArrayList<GridViewItem> gridViewItems;
public GridViewItemAdapter(@NonNull Context context, int resource, @NonNull ArrayList<GridViewItem> objects) {
super(context, resource, objects);
this.gridViewItems = objects;
}
@bahaa-ka
bahaa-ka / DeleteFromAvlTree.cpp
Created May 19, 2018 13:05
Deletion From Avl Tree
Node* Delete(Node* &root, int value)
{
if (root == 0)
return root;
if (value < root->data)
root->left = Delete(root->left, value);
else if (value > root->data)
root->right = Delete(root->right, value);
else
{