- https://www.reddit.com/r/swaywm/comments/c1oz8p/from_gnome_shell_to_sway/
- https://www.reddit.com/r/swaywm/comments/t8k07z/what_apps_are_you_running_on_sway_wayland_native/?rdt=34776
Good sample setup:
# to control bluetooth | |
bluetoothctrl | |
# and? maybe | |
blueman | |
# for application launcher | |
bemenu | |
# to view apps | |
waybar |
917. Reverse Only Letters
746. Min Cost Climbing Stairs
486. Predict the Winner
1856. Maximum Subarray Min-Product
https://leetcode.com/problems/hand-of-straights/ https://leetcode.com/problems/find-subarray-with-bitwise-and-closest-to-k/ https://leetcode.com/problems/building-boxes/description/
/* | |
857. Minimum Cost to Hire K Workers | |
https://leetcode.com/problems/minimum-cost-to-hire-k-workers | |
Attempt#1 | |
*/ | |
class Solution { | |
public double mincostToHireWorkers(int[] quality, int[] wage, int k) { | |
return 0.0; | |
} |
/* | |
1928. Minimum Cost to Reach Destination in Time | |
https://leetcode.com/problems/minimum-cost-to-reach-destination-in-time | |
*/ | |
class Solution { | |
public int minCost(int maxTime, int[][] edges, int[] passingFees) { | |
int src = 0; | |
int n = 0; |
/** | |
1530. Number of Good Leaf Nodes Pairs | |
Attempt#1 | |
https://leetcode.com/problems/number-of-good-leaf-nodes-pairs/ | |
* Definition for a binary tree node. | |
* public class TreeNode { | |
* int val; | |
* TreeNode left; | |
* TreeNode right; | |
* TreeNode() {} |
class Solution { | |
private int[] parse(String log) { | |
int n = log.length(); | |
int i = 0; | |
int[] res = new int[3]; | |
char ch = log.charAt(i); | |
int curr = 0; | |
while (ch != ':') { | |
curr = curr * 10 + (ch-'0'); | |
i++; |
Наступної неділі будемо обговорювати задачки вищче + те що було на сьогодні
# instructions are taken from https://chrisirwin.ca/posts/ps2-trackpoint-scrolling-wayland/ | |
# usb adapter and producer info | |
lsusb | grep 13ba | |
# finding device ids | |
sudo libinput list-devices | grep Device | |
# create udev rule | |
$ sudo tee /etc/udev/rules.d/70-ps2-pointingstick.rules <<EOF |
{ | |
"user_id": "gene34" | |
} |