This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Goal | |
You're helping me design a wireframe for an app/feature that <your single sentence on your job to be done>. | |
## Target user | |
<Who is this feature for, and what mindset are they in when using it?> | |
## Success criteria | |
<How you will know your user has achieved their job to be done> | |
## Key screens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn partition(array: &mut Vec<i64>, low: usize, high: usize) -> usize { | |
let pivot = low; | |
let mut left = low + 1; | |
let mut right = high; | |
while left <= right { | |
if array[left] >= array[pivot] && array[right] <= array[pivot] { | |
array.swap(left, right); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type NodePtr = Option<Box<Node>>; | |
#[derive(Clone, Debug, PartialEq)] | |
struct Node { | |
value: i32, | |
next: NodePtr, | |
} | |
#[derive(Debug, PartialEq)] | |
pub struct LinkedList { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useContext } from "react"; | |
import { CounterContext, CounterProvider } from "./counterContext"; | |
function Counter() { | |
const { state, dispatch } = useContext(CounterContext); | |
return ( | |
<div> | |
<h5>Count: {state.count}</h5> |