VSCode: configure OhMyZsh with autosuggestions and a beautiful color theme om Ubuntu

Install Zsh First, ensure that Zsh is installed on your system. You can install it using the following commands: Set Zsh as Default Shell Install Oh My Zsh Install Zsh Autosuggestions Find the line that starts with plugins=(…) and add zsh-autosuggestions inside the parentheses. It should look something like this: Then set ZSH_THEME=”powerlevel10k/powerlevel10k” in your … Read more

atoi in C#

The atoi function in C# is used to convert a string representation of a number to its integer equivalent. In C#, the equivalent function is int.Parse() or int.TryParse(). The following is an example of how you can use int.Parse() to convert a string to an integer: And here’s an example of how you can use … Read more

Is Subsequence (C# and Python3)

Given two strings s and t, return true if s is a subsequence of t, or false otherwise. A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (i.e., “ace” is a subsequence of “abcde” while “aec” is not). Solution C# Python3

Combination Sum (C# and Python3)

Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order. The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different. It is guaranteed that the number of unique combinations … Read more

Open chat
Powered by