Skip to content

Instantly share code, notes, and snippets.

🤸‍♂
Jumping around

Nikola Ristic rista404

🤸‍♂
Jumping around
Block or report user

Report or block rista404

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View simplestrings.js
const string = "Danas je lep i suncan dan";
const p = 3, q = 5;
string
.split(' ')
.filter((word) => word.length >= p && word.length <= q)
.forEach(console.log)
View rasitnjavanje.c
#include <stdio.h>
int s, n, vrNov[10], brNov[10];
void Ispis() {
for(int i = 0; i < n; i++)
printf("%d novcanica od %d din ", brNov[i], vrNov[i]);
printf("\n");
}
View backtrack.c
#include <stdio.h>
typedef struct Pos {
int x, y;
};
struct Pos put[100], minPut[100];
int n, lavirint[10][10], stX, stY, endX, endY, minBrojKoraka;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
@rista404
rista404 / countries.json
Created Feb 18, 2016
Array of all countries, containing country codes and names
View countries.json
[
{"code": "AF", "name": "Afghanistan"},
{"code": "AX", "name": "&Aring;land Islands"},
{"code": "AL", "name": "Albania"},
{"code": "DZ", "name": "Algeria"},
{"code": "AS", "name": "American Samoa"},
{"code": "AD", "name": "Andorra"},
{"code": "AO", "name": "Angola"},
{"code": "AI", "name": "Anguilla"},
{"code": "AQ", "name": "Antarctica"},
You can’t perform that action at this time.