This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]<<" "; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// HeapWork | |
// | |
// Created by Luka Dodelia on 5/9/12. | |
// Copyright (c) 2012 Picktek All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// HeapWork | |
// | |
// Created by Luka Dodelia on 5/9/12. | |
// Copyright (c) 2012 Picktek All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class LDNode | |
{ | |
public: | |
LDNode(); | |
int key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// Trie | |
// | |
// Created by Luka Dodelia on 5/23/12. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// Trie | |
// | |
// Created by Luka Dodelia on 5/23/12. | |
// Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// Trie | |
// | |
// Created by Luka Dodelia on 5/23/12. | |
// Copyright (c) 2012 All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
OlderNewer