Skip to content

Instantly share code, notes, and snippets.

View mitchfriedman's full-sized avatar

Mitchell Friedman mitchfriedman

View GitHub Profile
version: '2.2'
services:
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es01
- bootstrap.memory_lock=true
static_resources:
clusters:
- name: local_admin_cluster
connect_timeout: 30s
type: STATIC
lb_policy: ROUND_ROBIN
hosts: [{ socket_address: { address: 0.0.0.0, port_value: 5000 }}]
listeners:
- name: local_admin_listener
admin:
access_log_path: /var/log/envoy/envoy_admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 5000 }
Run 1:
Parameters of: p1 b10 t5 c75 m200 s3090
Target density:18
Found density of 19 in block: 0, 0
_>>___VV>>
V>_VV>>V_>
>>V>V_>_V>
V_>_>_>V>V
>VV>>_V__>
void printList(Food * theList) // maybe something is weird here? Idk, mostly for
{
struct Food * curPos;
char * tempStr;
if (isEmpty(theList) == true)
printf("Error: there is no record to print.\n");
curPos = theList;
int parent = floor(position/2);
if(position != 0) {
/* less than 1, swap required */
if( (*queue)->compare( (*queue)->items[parent]->value, (*queue)->items[position]->value ) > 0 ) {
swap(queue, parent, position);
upHeap(queue, parent);
}
}
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <ctype.h>
int GetUserAnswer(int *userAnswer);