Yiling's Tech Zone

Tech blogger, University of Western Australia postgraduate student. Machine Learning/Data Structure & Algorithms/Python/C#/Web backend/JS/Java/R

Frequently Used C Built-in Functions in File Processing

C basic

Methods fopen FILE *fopen(const char *filepath, const char *mode) *filepath should be a relative path or path of target file. Mode include: Mode Description ...

Leetcode 598. Range Addition II C & Csharp(C#) Solution

Leetcode With Csharp series tutorial

Problem could be found on Leetcode Here I am previewing HPC unit at school but it requires C knowledge, I almost forget it. So I will attached C code together with C# for review. Problem Descript...

Debug C Code with OpenMP in VScode

High Performance Computing

Problem We Have While using VScode to debug code with openMP, there will be errors if you use gcc filename.c directly. #include<stdio.h> #include <omp.h> int main() { #pragma omp ...

First Python Project - Configure A Hero - Part C

Tutorial for newbies to programming

Related links for this tutorial could be found HERE Use Data inside a List Now you already got a Python function in the previous tutorial def HeroEquipChoose(ori_atk, ori_edm): use_eq_a = (or...

Leetcode 540. Single Element in a Sorted Array Csharp(C#) Solution

Leetcode With Csharp series tutorial

Problem could be found on Leetcode Here Problem Description You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appear...

Leetcode 413. Arithmetic Slices Csharp(C#) Solution

Leetcode With Csharp series tutorial

Problem could be found on Leetcode Here Problem Description A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive e...

Leetcode 356. Line Reflection Csharp(C#) Solution

Leetcode With Csharp series tutorial

That is a problem that requires premium. You can find it HERE if you are a paid menber. Problem Description Given n points on a 2D plane, find if there is such a line parallel to y-axis that refl...

First Python Project - Configure A Hero - Part B

Tutorial for newbies to programming

Related links for this tutorial could be found HERE Make Your Calculator Works Like a Program Now you already get the result for your own character, but you friend says: “Hey, brother. My team wa...

First Python Project - Configure A Hero - Part A

Tutorial for newbies to programming

Related links for this tutorial could be found HERE Start from printing “Hello World” is quite boring, it appears in almost every tutorial. Let’s do an interesting mini-project together. If you ar...

Python for Beginners - Introduction

Tutorial for newbies to programming

Introduction Everyting Start From Interest I wrote this guide to show my way to get interested in coding step-by-step. Programming is a cool and useful skill that allows you to make your life mor...