Skip to content

Instantly share code, notes, and snippets.

View lukasa1993's full-sized avatar
🏠
Working from home

luka dodelia lukasa1993

🏠
Working from home
View GitHub Profile
#include <iostream>
#include <vector>
using namespace std;
void printTree(vector<int> & sgTree,int segSize)
{
int tmpSize = segSize;
for(int i =0; i<sgTree.size(); i++) {
cout<<sgTree[i]<<" ";
}
#include <iostream>
#include <vector>
using namespace std;
int customeAdd(int i,int N,int K)
{
if(i + K > N) {
return (i + K) - N;
}
return i + K;
//
// main.cpp
// HeapWork
//
// Created by Luka Dodelia on 5/9/12.
// Copyright (c) 2012 Picktek All rights reserved.
//
#include <iostream>
#include <vector>
//
// main.cpp
// HeapWork
//
// Created by Luka Dodelia on 5/9/12.
// Copyright (c) 2012 Picktek All rights reserved.
//
#include <iostream>
#include <vector>
#include <iostream>
using namespace std;
class LDNode
{
public:
LDNode();
int key;
/* libpbm2.c - pbm utility library part 2
**
** Copyright (C) 1988 by Jef Poskanzer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and that both that
** copyright notice and this permission notice appear in supporting
** documentation. This software is provided "as is" without express or
** implied warranty.
/* pbm.h - header file for libpbm portable bitmap library
*/
#ifndef _PBM_H_
#define _PBM_H_
#include <stdio.h>
#define PBM_WHITE 0
#define PBM_BLACK 1
//
// main.cpp
// Trie
//
// Created by Luka Dodelia on 5/23/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include <iostream>
#include <vector>
//
// main.cpp
// Trie
//
// Created by Luka Dodelia on 5/23/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include <iostream>
#include <vector>
//
// main.cpp
// Trie
//
// Created by Luka Dodelia on 5/23/12.
// Copyright (c) 2012 All rights reserved.
//
#include <iostream>
#include <vector>