chore: format sources
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
b59f949d8f
commit
917aecb33f
2 changed files with 13 additions and 10 deletions
|
@ -5,7 +5,8 @@ using std::vector;
|
|||
|
||||
class Solution {
|
||||
public:
|
||||
bool canPlaceFlowers(vector<int> &flowerbed, int n) {
|
||||
bool canPlaceFlowers(vector<int>& flowerbed, int n)
|
||||
{
|
||||
int count = 0;
|
||||
|
||||
int left = 0, right;
|
||||
|
@ -24,7 +25,8 @@ class Solution {
|
|||
}
|
||||
};
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
Solution s;
|
||||
|
||||
std::vector flowers { 1, 0, 0, 0, 1 };
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
*/
|
||||
class Solution {
|
||||
public:
|
||||
ListNode* middleNode(ListNode* head) {
|
||||
ListNode* middleNode(ListNode* head)
|
||||
{
|
||||
auto slow = head;
|
||||
auto fast = head ? head->next : nullptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue