From 35483ab1d59bf4da5d432e1a14716d25b2430a19 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 14 Apr 2022 21:19:57 +1000 Subject: minor update --- microposts/boyer-moore.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'microposts') diff --git a/microposts/boyer-moore.org b/microposts/boyer-moore.org index 6298454..8c67b74 100644 --- a/microposts/boyer-moore.org +++ b/microposts/boyer-moore.org @@ -7,7 +7,7 @@ The algorithm for finding the majority of a sequence of elements]] falls in the category of "very clever algorithms". -#+begin_example +#+begin_src c++ int majorityElement(vector& xs) { int count = 0; int maj = xs[0]; @@ -18,4 +18,4 @@ the category of "very clever algorithms". } return maj; } -#+end_example +#+end_src -- cgit v1.2.3