Skip to content

Instantly share code, notes, and snippets.

View luk0y's full-sized avatar
🎯
Focusing

luk0y luk0y

🎯
Focusing
View GitHub Profile
@luk0y
luk0y / Linkedlist_Deletion.c
Created March 9, 2019 10:00
All deletion operations in Single Linked List
#include<stdio.h>
#include<stdlib.h>
void delstart();
void delend();
void delgiven();
void delbefore();
void delafter();
struct node
{
int data;
@luk0y
luk0y / Deletion_Double.c
Created March 9, 2019 10:02
All deletion operations in a double linked list
#include<stdio.h>
#include<stdlib.h>
void delstart();
void delend();
void delgiven();
void delbefore();
void delafter();
struct node
{
int data;
@luk0y
luk0y / merge_linkedlist.c
Created March 9, 2019 10:04
Merging of two Linked lists
#include<stdio.h>
#include<stdlib.h>
void create();
void start1();
void start2();
int a=0;
struct node
{
int data;
struct node *adr;
@luk0y
luk0y / merge_doublelinkedlist.c
Created March 9, 2019 10:06
Merging of two double linked lists
#include<stdio.h>
#include<stdlib.h>
int create();
int start();
int start1();
int a=0;
int x,k;
struct node
{
int data;
@luk0y
luk0y / frequency_linkedlist.c
Created March 9, 2019 16:15
Finding the frequency of the elements in the single linked list
//By luk0y
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *adr;
};
void main()
{
@luk0y
luk0y / reverse_elements.c
Created March 9, 2019 16:16
Reversing of a given linked list elements
//By luk0y...
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *adr;
};
void main()
{
@luk0y
luk0y / double_linkedlist.c
Created March 9, 2019 16:20
Creation of a double linked list
//By luk0y
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node *prev;
struct node *post;
};
void main()
{
@luk0y
luk0y / linkedlist_sort.c
Created March 9, 2019 16:23
Sorting a linked list using bubble sort algorithm
#include<stdio.h>
#include<stdlib.h>
struct node
{
struct node *addr;
int data;
};
void main()
{
struct node *start=NULL,*nn,*ptr,*next;
@luk0y
luk0y / Stack_Linkedlist.c
Created March 9, 2019 16:26
Creation of stack using Linked list
#include <stdio.h>
#include <stdlib.h>
struct node{
char k;
struct node *addr;
};
struct node *start,*ptr,*nn,*top;
int main(){
struct node *ms;
int y;
@luk0y
luk0y / example_image_utils.py
Created September 30, 2020 13:47 — forked from josephkern/example_image_utils.py
Layer on top of Python Imaging Library (PIL) to write text in images easily
#!/usr/bin/env python
# coding: utf-8
# You need PIL <http://www.pythonware.com/products/pil/> to run this script
# Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use
# any TTF you have)
# Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com]
# License: GPL <http://www.gnu.org/copyleft/gpl.html>
from image_utils import ImageText