Skip to content

Instantly share code, notes, and snippets.

View ghtali's full-sized avatar

Ali Ghodrat ghtali

View GitHub Profile
@ghtali
ghtali / API.md
Created March 2, 2021 20:19 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

Keybase proof

I hereby claim:

  • I am ghtali on github.
  • I am ghtali (https://keybase.io/ghtali) on keybase.
  • I have a public key whose fingerprint is 43DC 0480 AC0C A6B7 0F55 6F0B A9C9 6498 9D88 8711

To claim this, I am signing this object:

@ghtali
ghtali / Example.java
Last active December 27, 2017 01:44
Passing parameters by value in java
import java.lang.reflect.Method;
public class Example {
public static void main(String[] args) {
int a = 30;
int b = 45;
System.out.println("Before swapping, a = " + a + " and b = " + b);
// Invoke the swap method
@ghtali
ghtali / Example.java
Last active December 27, 2017 01:40
Call to a void method Java
import java.lang.reflect.Method;
public class Example {
public static void main(String[] args) {
// TODO Auto-generated method stub
MethodRankPoints(19.9);
}
public static void MethodRankPoints(double points) {
@ghtali
ghtali / MinimumNumber.java
Last active December 27, 2017 01:08
Finding minimum number by using Method Calling in Java
public class Example {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a = 9;
int b = 6;
int c = minFunction(a,b);
System.out.println("Minimum value = " + c);
}
### Keybase proof
I hereby claim:
* I am ghtali on github.
* I am ghtali (https://keybase.io/ghtali) on keybase.
* I have a public key ASCVntoZUiIjZB_yhnCPWjycD2ew2bTYVJ_1IbDaAlm4tQo
To claim this, I am signing this object:
@ghtali
ghtali / The Technical Interview Cheat Sheet.md
Last active May 17, 2021 16:01 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Sometimes studying for a Tech Interview is boring, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.