Skip to content

Instantly share code, notes, and snippets.

// C++ program to find the largest multiple of three
// that can be formed by concatenating some of the
// given digits in any order
#include <bits/stdc++.h>
using namespace std;
// Function to find the largest multiple of three
// that can be formed by concatenating some of the
// given digits in any order
string largestMultipleOfThree(int digits[], int n)
class Solution:
def countSubstrings(self, s: str) -> int:
# put s into array of characters chars
# ODD LENGTH PALINDROMES: for each element in chars check if left and right are the same
# EVEN LENGTH PALINDROMES: for each two elements in chars check if they are the same, then check if left and right are the same
# return ans
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainMenuFragment">
<Button
android:backgroundTint="@color/mint"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/pink"
tools:context=".InstructionMenuFragment">
<Button
@qclalo
qclalo / colors.xml
Created October 2, 2022 14:59
Colors 10/2/22
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFF</color>
<color name="space">#303633</color>

Keybase proof

I hereby claim:

  • I am dulithe on github.
  • I am dulithe (https://keybase.io/dulithe) on keybase.
  • I have a public key ASC3hBaq5oWsdzJGESbvzKPLW7ui-cfW2T5XK71NypxgBgo

To claim this, I am signing this object: