Git Product home page Git Product logo

scs's Introduction

Programming concepts to crack interviews

Pre-workshop

Read fundamentals of computing (computer, assembler, compiler) here.

Click on examples to check the visualization of the code.

Simple swap example

#include <stdio.h>

void swap(int a, int b) {
	int temp;
	temp = a;
	a = b;
	b = temp;
}

int main() {

	int a = 5, b = 10;
	printf("a = %d, b = %d\n", a, b);

	swap(a, b);
	printf("a = %d, b = %d\n", a, b);

	swap(a+2, b+5);

	return 0;
}

Linked List example

Read about Linked List DS

#include <stdio.h>
#include <stdlib.h>

typedef struct node {
  int value;
  struct node *next;
} LinkedListNode;


LinkedListNode *createLinkedListNode(int data) {
  LinkedListNode *node = (LinkedListNode *)malloc(sizeof(LinkedListNode));
  node->next = NULL;
  node->value = data;
  return node;
}


LinkedListNode *createLL() {
  LinkedListNode *a = createLinkedListNode(5);
  LinkedListNode *b = createLinkedListNode(1);
  LinkedListNode *c = createLinkedListNode(9);

  a->next = b;
  b->next = c;

  return a;
}

int main() {
  LinkedListNode *head;
  head = createLL();
  return 0;
}

Workshop

Pointers, Recursive functions, Memory, LL Data Structure.

C program execution model

Functions

  • Abstraction
  • Implementation
  • Execution

activities

  • function declarations
  • function executions
  • linked list creation
  • swap
  • array updates

Post-workshop

scs's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.