Category: Geek Stuffs

All things related with Computer and IT

Leetcode Roasting of the Day: Replace Words

Let’s roast! Today’s Leetcode challenge is: 648. Replace Words Given a list of dictionary words, replace all words in the given sentence that has the prefix of the word match to the dictionary word, into that prefix. So, if we have a dictionary word “cat” and a sentence “the cattle”, we replace “cattle” into “cat” since “cat” is a prefix of “cattle”, hence producing the resulting sentence “the cat”. It...

Another Roasting the Leetcode of the Day: Hand of Straights

Today’s Leetcode is: 846. Hand of Straights (https://leetcode.com/problems/hand-of-straights/) The general idea is extremely simple: given a list of numbers, divide the numbers equally into multiple lists with k size, where each elements are consecutive numbers. For example: List [1,2,3,6,2,3,4,7,8], divided into list of 3 elements will be: [1,2,3],[2,3,4],[6,7,8]. Make a function to check IF we can make such list or not. I am checking the provided solution by Leetcode, and...

Code Roasting the Leetcode Submission

Let’s do some code-roasting, shall we? 😛 Today’s Leetcode challenge is straightforward: “Longest Palindrome.” The problem statement is simple: given a string consisting of lowercase and uppercase characters, return the longest palindrome length that can be built with the supplied letters. This is a simple counting problem that can be solved by counting the appearance of the characters in the string. If a character appears as many as even times,...

Leetcode-ing with Assembly: Add Two Numbers

I was bored yesterday, so I decided to play with Leetcode, but by coding it in assembly. I initially got inspired by the Indonesian tech discourse to solve the simple “Add Two Numbers” problem using assembly (Link to tweet). Then it comes to my mind, how if I solve other problems with assembly as well. Then I delved into the rabbit hole of playing with the x86 instruction sets. I...

My Computer Throughout My Lifetime

Just stumbled upon twatterverse where people are flexing their PC build. So I decided to join the bandwagon lol. But rather than talking my only current PC, in this post I am going to describe all PC builds and laptop I ever owned. Early 16-bit days The earlierst PC I (or, basically my family) owned was when I was 4 years old. It was around the year of 1994, when...

Speculating: Why Windows 11 Requirements is Too Strict

We just recently hear an announcement that Windows 11 will require a hard requirement that left out the older machines from installing it. People have been questioning this requirement because it left out the majority of older PC users. In the recent announcement, they even stated that older systems more than 3 years old will not be able to install Windows 11. This includes Intel processors prior to Coffee Lake...

Tech Interview with Microsoft

I got an opportunity to be interviewed by Microsoft Engineering Center France for an internship position. I came across this opportunity from my campus internal bulletin board and my documents were submitted to this private channel. The position offered is a software engineer intern. So here’s some story about my experience getting interviewed by a tech giant. First Step: Online Coding Test Similar to other tech companies, everything began with...

Learning LLVM: Compiling LLVM

LLVM is a set of compiler toolchains which supports various programming languages and various target machines. Its popularity is currently rising, where according to JetBrains, around 26% of C++ developers are using it to compile C++. Although it is still far to reach the ubiquity of GCC toolchain, it is being adopted across industries and it has a very fast moving development since many of the developers are sponsored by...

VPS Experience (Part 2): Configuring Fedora for VPS

Since I rented my current VPS web last year, I had been using CentOS 7.4 for its operating system. It is derived from Red Hat Enterprise Linux (RHEL) project which offers similar stability to an enterprise-grade server. Unfortunately, a few days ago I discovered that some packages in CentOS were really outdated, even on the latest version (7.6). Those packages are related to software development, such as GCC, Clang toolchains,...

Migrating Server (Again)

Apparently, I didn’t realize an email two weeks ago that my previous VPS hosting, WebSound decided to kick all its customer as they are shutting down the VPS business. I finally noticed that they sent me an e-mail 2 days ago about this issue. They said that they are going to shut down all VPS on March 10! They only give 2 weeks notice period of their cancellation and they...