100 articles · page 8 of 23
Removing the Nth Node from a list.
https://leetcode.com/problems/remove-nth-node-from-end-of-list Given the head of a linked list, remo…
Does birthrate decline equal the Loss of National Identity
Interesting problem of the modern age is overpopulation. Especially as AI begins to grab hold of the globe, wi…
Profound need for Self Correcting Minds
Psychology in my opinion was a pseudoscience for the longest time. It wasn't until we had brain scans that bac…
2270. Number of Ways to Split Array
class Solution { public: int waysToSplitArray(vector<int>& nums) { // Keep track of sum of elements on …
Subarrays with sum K
Given an unsorted array of integers, find the number of continuous subarrays having sum exactly equal to a giv…
1678. Goal Parser Interpretation
You own a Goal Parser that can interpret a string command. The command consists of an…
2559. Count Vowel Strings in Ranges
You are given a 0-indexed array of strings words and a 2D array of integers queries. …
1030. Matrix Cells in Distance Order
You are given four integers row, cols, rCenter, and cCenter. There is a rows x cols&n…
Maximum Score After Splitting a String
C++ Solution class Solution { public: int maxScore(string s) { int ones = count(s.begin(), s.end(), '1'); // T…
90% of CS graduates can't figure this out
Someone important on X posted: https://x.com/vikhyatk/status/1873033432705712304 i have a very simple question…
Count Ways To Build Good Strings
Given the integers zero, one, low, and high, we can construct a string by starting with an…
Custom Dockerfile for PHP 5.6 / Apache / WPCLI
I wanted to get my old wordpress 3.4 websites running again, so I had to build a couple docker images, and a d…
