Skip to content

Instantly share code, notes, and snippets.

View dhananjay1438's full-sized avatar

Dhananjay Panage dhananjay1438

View GitHub Profile
@dhananjay1438
dhananjay1438 / ginortS.py
Created March 21, 2021 18:14
Hackerrank problem
string = input()
string = sorted(string)
upper_case = [x for x in string if x.isupper()]
upper_case = sorted(upper_case)
lower_case = [x for x in string if x.islower()]
@dhananjay1438
dhananjay1438 / binary_search_tree.c
Created January 3, 2021 10:32
Binary search tree in c (but has problem in delete function)
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node* left;
struct node* right;
};
struct node* root = NULL;