其實我一開始就看了討論區的解答,但還是看不出來為什麼可以這樣解,印出所有資料後豁然開朗,所以紀錄一下~
https://leetcode.com/problems/reverse-linked-list/
這裡有我的心得、筆記、分享 純分享若內容有誤請見諒,請多方查證
其實我一開始就看了討論區的解答,但還是看不出來為什麼可以這樣解,印出所有資料後豁然開朗,所以紀錄一下~
https://leetcode.com/problems/reverse-linked-list/
如果遇到disk full導致vernemq 開不起來
WHERE EXISTS ( subquery );
SELECT * FROM customers WHERE EXISTS (SELECT * FROM order_details WHERE customers.customer_id = orders.customer_id);
SELECT * FROM customers WHERE NOT EXISTS (SELECT * FROM order_details WHERE customers.customer_id = orders.customer_id);
INSERT INTO contacts (contact_id, contact_name) SELECT supplier_id, supplier_name FROM suppliers WHERE EXISTS (SELECT * FROM orders WHERE suppliers.supplier_id = orders.supplier_id);
UPDATE suppliers SET supplier_name = (SELECT customers.customer_name FROM customers WHERE customers.customer_id = suppliers.supplier_id) WHERE EXISTS (SELECT * FROM customers WHERE customers.customer_id = suppliers.supplier_id);
DELETE FROM suppliers WHERE EXISTS (SELECT * FROM orders WHERE suppliers.supplier_id = orders.supplier_id);
div#header>div#logo+ul.nav>li.item-$*5>a
<div id="header"> <div id="logo"></div> <ul class="nav"> <li class="item-1"><a href=""></a></li> <li class="item-2"><a href=""></a></li> <li class="item-3"><a href=""></a></li> <li class="item-4"><a href=""></a></li> <li class="item-5"><a href=""></a></li> </ul> </div>
div#header>div#logo+ul.nav>li.item-$*5>a
<div id="header"> <div id="logo"></div> <ul class="nav"> <li class="item-1"><a href=""></a></li> <li class="item-2"><a href=""></a></li> <li class="item-3"><a href=""></a></li> <li class="item-4"><a href=""></a></li> <li class="item-5"><a href=""></a></li> </ul> </div>
p
<p></p>
div#header
<div id="header"></div>
div.region
<div class="region"></div>
div#nav.menu.links.tab
<div id="nav" class="menu links tab"></div>
div#header>h1#logog
<div id="header"> <h1 class="logo"></h1> </div>
div#header>h1#logo>a
<div id="header"> <h1 id="logo"><a href=""></a></h1> </div>
div#header>h1.site_name+p.site_solgan
<div id="header"> <h1 class="site_name"></h1> <p class="site_solgan"></p> </div>
a[title]
<a href="" title=""></a>
a[title="hello zen coding"]
<a href="" title="hello zen coding"></a>
div#nav>ul>li.item*5>a
<div id="nav"> <ul> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> </ul> </div>
ul>li.item-$*3
<ul> <li class="item-1"></li> <li class="item-2"></li> <li class="item-3"></li> </ul>
div#header>(h1.logo>a)+ul.nav>li.item*5>a
<div id="header"> <h1 class="logo"><a href=""></a></h1> <ul class="nav"> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> <li class="item"><a href=""></a></li> </ul> </div>
<div id="header"> <p>Hello Zen Coding</p> </div>
<div id="header"> <div class="limiter"> <p>Hello Zen Coding</p> </div> </div>
list1 list2 list3 list4 list5
<ul class="menu"> <li class="item"><a href="">list1</a></li> <li class="item"><a href="">list2</a></li> <li class="item"><a href="">list3</a></li> <li class="item"><a href="">list4</a></li> <li class="item"><a href="">list5</a></li> </ul>
<div class="test"> hello world </div>